public final class AttributeMetadata
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 |
---|
AttributeMetadata() |
Modifier and Type | Method and Description |
---|---|
AttributeMetadata |
clone() |
java.lang.String |
getAttributeId()
The ID of the attribute.
|
java.lang.String |
getDisplayName()
The localized display name for the attribute, if available; otherwise, the English display
name.
|
java.lang.String |
getGroupDisplayName()
The localized display name of the group that contains this attribute, if available; otherwise,
the English group name.
|
java.lang.Boolean |
getIsDeprecated()
If true, the attribute is deprecated and should no longer be used.
|
java.lang.Boolean |
getIsRepeatable()
If true, the attribute supports multiple values.
|
java.util.List<AttributeValueMetadata> |
getValueMetadata()
For some types of attributes (for example, enums), a list of supported values and corresponding
display names for those values is provided.
|
java.lang.String |
getValueType()
The value type for the attribute.
|
AttributeMetadata |
set(java.lang.String fieldName,
java.lang.Object value) |
AttributeMetadata |
setAttributeId(java.lang.String attributeId)
The ID of the attribute.
|
AttributeMetadata |
setDisplayName(java.lang.String displayName)
The localized display name for the attribute, if available; otherwise, the English display
name.
|
AttributeMetadata |
setGroupDisplayName(java.lang.String groupDisplayName)
The localized display name of the group that contains this attribute, if available; otherwise,
the English group name.
|
AttributeMetadata |
setIsDeprecated(java.lang.Boolean isDeprecated)
If true, the attribute is deprecated and should no longer be used.
|
AttributeMetadata |
setIsRepeatable(java.lang.Boolean isRepeatable)
If true, the attribute supports multiple values.
|
AttributeMetadata |
setValueMetadata(java.util.List<AttributeValueMetadata> valueMetadata)
For some types of attributes (for example, enums), a list of supported values and corresponding
display names for those values is provided.
|
AttributeMetadata |
setValueType(java.lang.String valueType)
The value type for the attribute.
|
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 AttributeMetadata setAttributeId(java.lang.String attributeId)
attributeId
- attributeId or null
for nonepublic java.lang.String getDisplayName()
null
for nonepublic AttributeMetadata setDisplayName(java.lang.String displayName)
displayName
- displayName or null
for nonepublic java.lang.String getGroupDisplayName()
null
for nonepublic AttributeMetadata setGroupDisplayName(java.lang.String groupDisplayName)
groupDisplayName
- groupDisplayName or null
for nonepublic java.lang.Boolean getIsDeprecated()
null
for nonepublic AttributeMetadata setIsDeprecated(java.lang.Boolean isDeprecated)
isDeprecated
- isDeprecated or null
for nonepublic java.lang.Boolean getIsRepeatable()
null
for nonepublic AttributeMetadata setIsRepeatable(java.lang.Boolean isRepeatable)
isRepeatable
- isRepeatable or null
for nonepublic java.util.List<AttributeValueMetadata> getValueMetadata()
null
for nonepublic AttributeMetadata setValueMetadata(java.util.List<AttributeValueMetadata> valueMetadata)
valueMetadata
- valueMetadata or null
for nonepublic java.lang.String getValueType()
null
for nonepublic AttributeMetadata setValueType(java.lang.String valueType)
valueType
- valueType or null
for nonepublic AttributeMetadata set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public AttributeMetadata clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011-2018 Google. All Rights Reserved.