Metodo ListBookings

Richiesta

ListBookingsRequest

Valore restituito

ListBookingsResponse

Deve restituire solo le prenotazioni future di un utente, non quelle di tutti i tempi.

Codici di errore gRPC canonici

  • NOT_FOUND (se l'ID utente richiesto non è noto al partner)
// Request to list all upcoming bookings for a user
message ListBookingsRequest {
  option features.(pb.java).nest_in_file_class = YES;

  // ID of the user (required)
  string user_id = 1;
}

// Response for the [ext.maps.booking.partner.v2.ListBookings] RPC with all
// upcoming bookings for the requested user
message ListBookingsResponse {
  option features.(pb.java).nest_in_file_class = YES;

  // All bookings of the user (required)
  repeated Booking bookings = 1;
}