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 列表组成:已设置的值 ID(值为 true)和未设置的值 ID(值为 false)。缺失的值会被视为未知。必须至少指定一个值。

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

string

已设置的枚举值。

unsetValues[]

string

未设置的枚举值。

UriAttributeValue

valueType 为网址的属性的值。

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

string

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