Attributes

容器,用於存放指定地點的所有屬性。

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

string

必填。這個地點的 Google ID,格式為 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)。如果沒有值,則視為不明。至少須指定一個值。

JSON 表示法
{
  "setValues": [
    string
  ],
  "unsetValues": [
    string
  ]
}
欄位
setValues[]

string

已設定的列舉值。

unsetValues[]

string

未設定的列舉值。

UriAttributeValue

valueType 為網址的屬性值。

JSON 表示法
{
  "uri": string
}
欄位
uri

string

必填。這項屬性的建議 URI 值。