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 Google My Business 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.Flags
Constructor and Description |
---|
Attribute() |
Modifier and Type | Method and Description |
---|---|
Attribute |
clone() |
java.lang.String |
getAttributeId()
The ID of the attribute.
|
RepeatedEnumAttributeValue |
getRepeatedEnumValue()
When the attribute value type is REPEATED_ENUM, this contains the attribute value, and the
other values fields must be empty.
|
java.util.List<UrlAttributeValue> |
getUrlValues()
When the attribute value type is URL, this field contains the value(s) for this attribute, and
the other values fields must be empty.
|
java.util.List<java.lang.Object> |
getValues()
The values for this attribute.
|
java.lang.String |
getValueType()
Output only.
|
Attribute |
set(java.lang.String fieldName,
java.lang.Object value) |
Attribute |
setAttributeId(java.lang.String attributeId)
The ID of the attribute.
|
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 |
setUrlValues(java.util.List<UrlAttributeValue> urlValues)
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(java.util.List<java.lang.Object> values)
The values for this attribute.
|
Attribute |
setValueType(java.lang.String valueType)
Output only.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.String getAttributeId()
null
for nonepublic Attribute setAttributeId(java.lang.String attributeId)
attributeId
- attributeId or null
for nonepublic RepeatedEnumAttributeValue getRepeatedEnumValue()
null
for nonepublic Attribute setRepeatedEnumValue(RepeatedEnumAttributeValue repeatedEnumValue)
repeatedEnumValue
- repeatedEnumValue or null
for nonepublic java.util.List<UrlAttributeValue> getUrlValues()
null
for nonepublic Attribute setUrlValues(java.util.List<UrlAttributeValue> urlValues)
urlValues
- urlValues or null
for nonepublic java.lang.String getValueType()
null
for nonepublic Attribute setValueType(java.lang.String valueType)
valueType
- valueType or null
for nonepublic java.util.List<java.lang.Object> getValues()
null
for nonepublic Attribute setValues(java.util.List<java.lang.Object> values)
values
- values or null
for nonepublic Attribute set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public Attribute clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011-2018 Google. All Rights Reserved.