public final class Attribute
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the My Business Business Information API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Attribute() |
| Modifier and Type | Method and Description |
|---|---|
Attribute |
clone() |
String |
getName()
Required.
|
RepeatedEnumAttributeValue |
getRepeatedEnumValue()
When the attribute value type is REPEATED_ENUM, this contains the attribute value, and the
other values fields must be empty.
|
List<UriAttributeValue> |
getUriValues()
When the attribute value type is URL, this field contains the value(s) for this attribute, and
the other values fields must be empty.
|
List<Object> |
getValues()
The values for this attribute.
|
String |
getValueType()
Output only.
|
Attribute |
set(String fieldName,
Object value) |
Attribute |
setName(String name)
Required.
|
Attribute |
setRepeatedEnumValue(RepeatedEnumAttributeValue repeatedEnumValue)
When the attribute value type is REPEATED_ENUM, this contains the attribute value, and the
other values fields must be empty.
|
Attribute |
setUriValues(List<UriAttributeValue> uriValues)
When the attribute value type is URL, this field contains the value(s) for this attribute, and
the other values fields must be empty.
|
Attribute |
setValues(List<Object> values)
The values for this attribute.
|
Attribute |
setValueType(String valueType)
Output only.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic String getName()
null for nonepublic Attribute setName(String name)
name - name or null for nonepublic RepeatedEnumAttributeValue getRepeatedEnumValue()
null for nonepublic Attribute setRepeatedEnumValue(RepeatedEnumAttributeValue repeatedEnumValue)
repeatedEnumValue - repeatedEnumValue or null for nonepublic List<UriAttributeValue> getUriValues()
null for nonepublic Attribute setUriValues(List<UriAttributeValue> uriValues)
uriValues - uriValues or null for nonepublic String getValueType()
null for nonepublic Attribute setValueType(String valueType)
valueType - valueType or null for nonepublic List<Object> getValues()
null for nonepublic Attribute setValues(List<Object> values)
values - values or null for nonepublic Attribute set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic Attribute clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2025 Google. All rights reserved.