Barcode
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
필드 |
kind (deprecated) |
string
리소스의 종류를 식별합니다. 값은 고정 문자열 "walletobjects#barcode" 입니다.
|
type |
enum (BarcodeType )
바코드 유형입니다.
|
renderEncoding |
enum (BarcodeRenderEncoding )
바코드의 렌더링 인코딩입니다. 지정하면 지정된 인코딩으로 바코드가 렌더링됩니다. 그렇지 않으면 Google에서 가장 잘 알려진 인코딩을 선택합니다.
|
value |
string
바코드에 인코딩된 값입니다.
|
alternateText |
string
바코드 아래에 표시되는 기본 텍스트보다 우선 적용될 텍스트입니다(선택사항). 이 필드는 바코드 값을 인간이 읽을 수 있도록 하기 위한 것이며 바코드를 스캔할 수 없을 때 사용됩니다.
|
showCodeText |
object (LocalizedString )
클릭 동작 뒤에 바코드가 숨겨져 있을 때 표시되는 텍스트(선택사항)입니다. 패스에 스마트 탭이 사용 설정된 경우에 발생합니다. 지정하지 않으면 Google에서 기본값을 선택합니다.
|
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-25(UTC)
[null,null,["최종 업데이트: 2025-07-25(UTC)"],[[["\u003cp\u003eBarcodes in Google Wallet can be customized with type, rendering encoding, value, alternate text, and display settings for code text.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ekind\u003c/code\u003e field is deprecated and should no longer be used.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eshowCodeText\u003c/code\u003e field controls text display when the barcode is hidden, often due to Smart Tap.\u003c/p\u003e\n"],["\u003cp\u003eBarcode values can include an optional human-readable \u003ccode\u003ealternateText\u003c/code\u003e for accessibility.\u003c/p\u003e\n"]]],["The core content describes the structure and fields of a barcode in a JSON format. Key information includes: `type` specifying the barcode type, `renderEncoding` defining how the barcode is rendered, and `value` containing the encoded data. `alternateText` provides a human-readable alternative, while `showCodeText` offers optional text when the barcode is hidden. The `kind` field is deprecated. The document describes each field's data type.\n"],null,["- [JSON representation](#SCHEMA_REPRESENTATION)\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"kind\": string, \"type\": enum (/wallet/reference/rest/v1/BarcodeType), \"renderEncoding\": enum (/wallet/reference/rest/v1/BarcodeRenderEncoding), \"value\": string, \"alternateText\": string, \"showCodeText\": { object (/wallet/reference/rest/v1/LocalizedString) } } ``` |\n\n| Fields ||\n|-------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `kind` **(deprecated)** | `string` | This item is deprecated! Identifies what kind of resource this is. Value: the fixed string `\"walletobjects#barcode\"`. |\n| `type` | `enum (`[BarcodeType](/wallet/reference/rest/v1/BarcodeType)`)` The type of barcode. |\n| `renderEncoding` | `enum (`[BarcodeRenderEncoding](/wallet/reference/rest/v1/BarcodeRenderEncoding)`)` The render encoding for the barcode. When specified, barcode is rendered in the given encoding. Otherwise best known encoding is chosen by Google. |\n| `value` | `string` The value encoded in the barcode. |\n| `alternateText` | `string` An optional text that will override the default text that shows under the barcode. This field is intended for a human readable equivalent of the barcode value, used when the barcode cannot be scanned. |\n| `showCodeText` | `object (`[LocalizedString](/wallet/reference/rest/v1/LocalizedString)`)` Optional text that will be shown when the barcode is hidden behind a click action. This happens in cases where a pass has Smart Tap enabled. If not specified, a default is chosen by Google. |"]]