Attributes

A container for all the attributes for a given location.

JSON representation
{
  "name": string,
  "attributes": [
    {
      object (Attribute)
    }
  ]
}
Fields
name

string

Required. Google identifier for this location in the form of locations/{locationId}/attributes.

attributes[]

object (Attribute)

A collection of attributes that need to be updated.

Attribute

A location attribute. Attributes provide additional information about a location. The attributes that can be set on a location may vary based on the properties of that location (for example, category). Available attributes are determined by Google and may be added and removed without API changes.

JSON representation
{
  "name": string,
  "valueType": enum (AttributeValueType),
  "values": [
    value
  ],
  "repeatedEnumValue": {
    object (RepeatedEnumAttributeValue)
  },
  "uriValues": [
    {
      object (UriAttributeValue)
    }
  ]
}
Fields
name

string

Required. The resource name for this attribute.

valueType

enum (AttributeValueType)

Output only. The type of value that this attribute contains. This should be used to determine how to interpret the value.

values[]

value (Value format)

The values for this attribute. The type of the values supplied must match that expected for that attribute. This is a repeated field where multiple attribute values may be provided. Attribute types only support one value.

repeatedEnumValue

object (RepeatedEnumAttributeValue)

When the attribute value type is REPEATED_ENUM, this contains the attribute value, and the other values fields must be empty.

uriValues[]

object (UriAttributeValue)

When the attribute value type is URL, this field contains the value(s) for this attribute, and the other values fields must be empty.

RepeatedEnumAttributeValue

Values for an attribute with a valueType of REPEATED_ENUM. This consists of two lists of value IDs: those that are set (true) and those that are unset (false). Values absent are considered unknown. At least one value must be specified.

JSON representation
{
  "setValues": [
    string
  ],
  "unsetValues": [
    string
  ]
}
Fields
setValues[]

string

Enum values that are set.

unsetValues[]

string

Enum values that are unset.

UriAttributeValue

Values for an attribute with a valueType of URL.

JSON representation
{
  "uri": string
}
Fields
uri

string

Required. The proposed URI value for this attribute.