用户规范

// Personal information about the person making a booking
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)
  string telephone = 5;

  // Email address of the user (required)
  string email = 6;

  // User's language code, in BCP 47 format. Set iff partner is whitelisted.
  // Please contact the Reserve with Google team to be whitelisted for this
  // feature.
  string language_code = 7;
}

// Postal address for a user
message PostalAddress {

  // The country, e.g. "USA". (required)
  string address_country = 1;
  // The locality, e.g. "Mountain View". (required)
  string address_locality = 2;
  // The region, e.g. "CA". (required)
  string address_region = 3;
  // The post office box number, e.g. "3112". (optional)
  string post_office_box_number = 4;
  // The postal code, e.g. "94043". (required)
  string postal_code = 5;
  // The street address, e.g. "1600 Amphitheatre Pkwy". (required)
  string street_address = 6;
}