使用者定義
// Personal information about the person taking action (e.g. making a
// booking, an order, or creates a parking session).
message UserInformation {
// Unique ID of the user to the partner, chosen by Reserve with Google.
// (required)
string user_id = 1;
// Given name of the user (maximum 40 characters) (required)
string given_name = 2;
// Family name of the user (maximum 40 characters) (required)
string family_name = 3;
// Address of the user (optional)
PostalAddress address = 4;
// Phone number of the user (required)
// Consistent with the international definition in ITU-T E.123 recommendation.
// However, local conventions are also followed, such as using '-' instead of
// a space as separator. For example, a phone number in the US can be
// written as '+1 415-736-0000'
string telephone = 5;
// Email address of the user (required except for waitlists)
string email = 6;
// User's language code, in IETF BCP 47 format. It is sent only if a partner
// is allowed to use this feature. Please contact Reserve with Google team
// to be added to the allowlist and receive this code. (optional)
string language_code = 7;
reserved 8;
}
PostalAddress 定義
// The postal address for a merchant.
message PostalAddress {
// The country, using ISO 3166-1 alpha-2 country code, e.g. "US" (required)
string country = 1;
// The locality/city, e.g. "Mountain View". (required)
string locality = 2;
// The region/state/province, e.g. "CA". This field is only required in
// countries where region is commonly a part of the address. (optional)
string region = 3;
// The postal code, e.g. "94043". (required)
string postal_code = 4;
// The street address, e.g. "1600 Amphitheatre Pkwy". (required)
string street_address = 5;
}
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-11-26 (世界標準時間)。
[null,null,["上次更新時間:2024-11-26 (世界標準時間)。"],[[["`UserInformation` stores personal details of a user performing an action, like booking or ordering, and includes fields such as name, contact information, and address."],["`user_id` is a unique identifier assigned by Reserve with Google to represent the user."],["`PostalAddress`, nested within `UserInformation`, provides the user's address with fields for country, locality, region, postal code, and street address."],["While most fields in `UserInformation` are required, `address`, and `language_code` are optional, and email is not required for waitlists."],["Phone numbers adhere to the international ITU-T E.123 standard, but allow for local variations in formatting."]]],["The `UserInformation` message defines personal data needed for actions like bookings. It requires a unique `user_id`, `given_name`, `family_name`, `telephone`, and `email`. An optional `address` and `language_code` can be included. The `PostalAddress` message details an address, mandating the `country`, `locality`, `postal_code`, and `street_address`, with `region` being optional depending on the country. All string fields have specified format requirements.\n"]]