Barcode

JSON 表示法
{
  "kind": string,
  "type": enum (BarcodeType),
  "renderEncoding": enum (BarcodeRenderEncoding),
  "value": string,
  "alternateText": string,
  "showCodeText": {
    object (LocalizedString)
  }
}
欄位
kind
(deprecated)

string

用於識別資源的類型。值:固定字串 "walletobjects#barcode"

type

enum (BarcodeType)

條碼類型。

renderEncoding

enum (BarcodeRenderEncoding)

條碼的轉譯編碼。指定時,條碼會以指定的編碼轉譯。否則,Google 會選擇已知的編碼。

value

string

在條碼中編碼的值。

alternateText

string

選用的文字,會覆寫條碼下方顯示的預設文字。這個欄位適用於使用者可讀取的條碼值對等值,用於掃描條碼。

showCodeText

object (LocalizedString)

在點擊動作後方隱藏條碼時顯示的選用文字。如果票證已啟用智慧感應功能,就會發生這種情況。如未指定,則由 Google 選擇預設值。