ListBookings का तरीका

यह तरीका, किसी भी कारोबारी या कंपनी के लिए, उपयोगकर्ता की आने वाली बुकिंग की जानकारी दिखाता है. इस तरीके से, पिछली बुकिंग या रद्द की गई बुकिंग की जानकारी नहीं मिलनी चाहिए.

अनुरोध

ListBookingsRequest

रिटर्न वैल्यू

ListBookingsResponse

// Request to list all bookings for a user
message ListBookingsRequest {
  option features.(pb.java).nest_in_file_class = YES;

  // ID of the user (required)
  string user_id = 1 [
    features.field_presence = IMPLICIT,
    features.(pb.cpp).string_type = STRING
  ];
}

// Response for the ListBookings RPC with all 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;
}