Attributes

包含指定营业地点所有属性的容器。

JSON 表示法
{
  "name": string,
  "attributes": [
    {
      object (Attribute)
    }
  ]
}
字段
name

string

必需。此营业地点的 Google 标识符,格式为 locations/{locationId}/attributes

attributes[]

object (Attribute)

需要更新的属性集合。

属性

营业地点属性。属性提供有关营业地点的更多信息。可针对某个营业地点设置的属性因该营业地点的属性而异(例如类别)。可用属性由 Google 确定,并且可在不更改 API 的情况下添加和移除。

JSON 表示法
{
  "name": string,
  "valueType": enum (AttributeValueType),
  "values": [
    value
  ],
  "repeatedEnumValue": {
    object (RepeatedEnumAttributeValue)
  },
  "uriValues": [
    {
      object (UriAttributeValue)
    }
  ]
}
字段
name

string

必需。此属性的资源名称。

valueType

enum (AttributeValueType)

仅供输出。此属性包含的值的类型。此参数应用于确定如何解读值。

values[]

value (Value format)

此属性的值。提供的值类型必须与该属性的预期值类型一致。这是重复字段,其中可能会提供多个属性值。属性类型仅支持一个值。

repeatedEnumValue

object (RepeatedEnumAttributeValue)

当属性值类型为 REPEATED_ENUM 时,此字段包含属性值,其他值字段必须为空。

uriValues[]

object (UriAttributeValue)

当属性值类型为“网址”时,此字段包含此属性的值,其他值字段必须为空。

RepeatedEnumAttributeValue

valueType 为 REPEATED_ENUM 的属性的值。包括两个值 ID 列表:已设置 (true) 和未设置 (false) 的值 ID。不存在的值会被视为未知。必须至少指定一个值。

JSON 表示法
{
  "setValues": [
    string
  ],
  "unsetValues": [
    string
  ]
}
字段
setValues[]

string

已设置的枚举值。

unsetValues[]

string

未设置的枚举值。

UriAttributeValue

valueType 为网址的属性的值。

JSON 表示法
{
  "uri": string
}
字段
uri

string

必需。此属性的建议 URI 值。