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 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.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
AttributeMetadata() |
Modifier and Type | Method and Description |
---|---|
AttributeMetadata |
clone() |
Boolean |
getDeprecated()
If true, the attribute is deprecated and should no longer be used.
|
String |
getDisplayName()
The localized display name for the attribute, if available; otherwise, the English display
name.
|
String |
getGroupDisplayName()
The localized display name of the group that contains this attribute, if available; otherwise,
the English group name.
|
String |
getParent()
The unique identifier for the attribute.
|
Boolean |
getRepeatable()
If true, the attribute supports multiple values.
|
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.
|
String |
getValueType()
The value type for the attribute.
|
AttributeMetadata |
set(String fieldName,
Object value) |
AttributeMetadata |
setDeprecated(Boolean deprecated)
If true, the attribute is deprecated and should no longer be used.
|
AttributeMetadata |
setDisplayName(String displayName)
The localized display name for the attribute, if available; otherwise, the English display
name.
|
AttributeMetadata |
setGroupDisplayName(String groupDisplayName)
The localized display name of the group that contains this attribute, if available; otherwise,
the English group name.
|
AttributeMetadata |
setParent(String parent)
The unique identifier for the attribute.
|
AttributeMetadata |
setRepeatable(Boolean repeatable)
If true, the attribute supports multiple values.
|
AttributeMetadata |
setValueMetadata(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(String valueType)
The value type for the attribute.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public Boolean getDeprecated()
null
for nonepublic AttributeMetadata setDeprecated(Boolean deprecated)
deprecated
- deprecated or null
for nonepublic String getDisplayName()
null
for nonepublic AttributeMetadata setDisplayName(String displayName)
displayName
- displayName or null
for nonepublic String getGroupDisplayName()
null
for nonepublic AttributeMetadata setGroupDisplayName(String groupDisplayName)
groupDisplayName
- groupDisplayName or null
for nonepublic String getParent()
null
for nonepublic AttributeMetadata setParent(String parent)
parent
- parent or null
for nonepublic Boolean getRepeatable()
null
for nonepublic AttributeMetadata setRepeatable(Boolean repeatable)
repeatable
- repeatable or null
for nonepublic List<AttributeValueMetadata> getValueMetadata()
null
for nonepublic AttributeMetadata setValueMetadata(List<AttributeValueMetadata> valueMetadata)
valueMetadata
- valueMetadata or null
for nonepublic String getValueType()
null
for nonepublic AttributeMetadata setValueType(String valueType)
valueType
- valueType or null
for nonepublic AttributeMetadata set(String fieldName, 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–2025 Google. All rights reserved.