| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // source: booking_service.proto |
| |
| /* |
| Package ext_maps_booking_partner_v2 is a generated protocol buffer package. |
| |
| It is generated from these files: |
| booking_service.proto |
| |
| It has these top-level messages: |
| Slot |
| Lease |
| LeaseReference |
| Booking |
| UserInformation |
| PostalAddress |
| PaymentProcessingParameters |
| Price |
| UserPaymentOption |
| PaymentInformation |
| BookingFailure |
| Resources |
| CheckAvailabilityRequest |
| CheckAvailabilityResponse |
| CreateLeaseRequest |
| CreateLeaseResponse |
| CreateBookingRequest |
| CreateBookingResponse |
| UpdateBookingRequest |
| UpdateBookingResponse |
| GetBookingStatusRequest |
| GetBookingStatusResponse |
| ListBookingsRequest |
| ListBookingsResponse |
| */ |
| package ext_maps_booking_partner_v2 |
| |
| import proto "github.com/golang/protobuf/proto" |
| import fmt "fmt" |
| import math "math" |
| import google_protobuf "github.com/golang/protobuf/ptypes/duration" |
| import google_protobuf1 "google.golang.org/genproto/protobuf/field_mask" |
| import google_protobuf2 "github.com/golang/protobuf/ptypes/timestamp" |
| |
| import ( |
| context "golang.org/x/net/context" |
| grpc "google.golang.org/grpc" |
| ) |
| |
| // Reference imports to suppress errors if they are not otherwise used. |
| var _ = proto.Marshal |
| var _ = fmt.Errorf |
| var _ = math.Inf |
| |
| // This is a compile-time assertion to ensure that this generated file |
| // is compatible with the proto package it is being compiled against. |
| // A compilation error at this line likely means your copy of the |
| // proto package needs to be updated. |
| const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package |
| |
| type PaymentOptionType int32 |
| |
| const ( |
| PaymentOptionType_PAYMENT_OPTION_TYPE_UNSPECIFIED PaymentOptionType = 0 |
| PaymentOptionType_PAYMENT_OPTION_SINGLE_USE PaymentOptionType = 1 |
| PaymentOptionType_PAYMENT_OPTION_MULTI_USE PaymentOptionType = 2 |
| PaymentOptionType_PAYMENT_OPTION_UNLIMITED_USE PaymentOptionType = 3 |
| ) |
| |
| var PaymentOptionType_name = map[int32]string{ |
| 0: "PAYMENT_OPTION_TYPE_UNSPECIFIED", |
| 1: "PAYMENT_OPTION_SINGLE_USE", |
| 2: "PAYMENT_OPTION_MULTI_USE", |
| 3: "PAYMENT_OPTION_UNLIMITED_USE", |
| } |
| var PaymentOptionType_value = map[string]int32{ |
| "PAYMENT_OPTION_TYPE_UNSPECIFIED": 0, |
| "PAYMENT_OPTION_SINGLE_USE": 1, |
| "PAYMENT_OPTION_MULTI_USE": 2, |
| "PAYMENT_OPTION_UNLIMITED_USE": 3, |
| } |
| |
| func (x PaymentOptionType) String() string { |
| return proto.EnumName(PaymentOptionType_name, int32(x)) |
| } |
| func (PaymentOptionType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } |
| |
| // Status of a booking. |
| // |
| // Updating booking status does not change the status of the associated payment. |
| // Prepayment status updates should be done using the PrepaymentStatus enum. |
| // |
| // nextID: 6 |
| type BookingStatus int32 |
| |
| const ( |
| // Not specified. |
| BookingStatus_BOOKING_STATUS_UNSPECIFIED BookingStatus = 0 |
| // Booking has been confirmed |
| BookingStatus_CONFIRMED BookingStatus = 1 |
| // Booking is awaiting confirmation by the merchant before it can transition |
| // into CONFIRMED status |
| BookingStatus_PENDING_MERCHANT_CONFIRMATION BookingStatus = 2 |
| // Booking has been canceled on behalf of the user. |
| // The merchant can still trigger a manual refund. |
| BookingStatus_CANCELED BookingStatus = 3 |
| // User did not show for the appointment |
| BookingStatus_NO_SHOW BookingStatus = 4 |
| // User did not show for the appointment in violation of the cancellation |
| // policy. |
| BookingStatus_NO_SHOW_PENALIZED BookingStatus = 5 |
| ) |
| |
| var BookingStatus_name = map[int32]string{ |
| 0: "BOOKING_STATUS_UNSPECIFIED", |
| 1: "CONFIRMED", |
| 2: "PENDING_MERCHANT_CONFIRMATION", |
| 3: "CANCELED", |
| 4: "NO_SHOW", |
| 5: "NO_SHOW_PENALIZED", |
| } |
| var BookingStatus_value = map[string]int32{ |
| "BOOKING_STATUS_UNSPECIFIED": 0, |
| "CONFIRMED": 1, |
| "PENDING_MERCHANT_CONFIRMATION": 2, |
| "CANCELED": 3, |
| "NO_SHOW": 4, |
| "NO_SHOW_PENALIZED": 5, |
| } |
| |
| func (x BookingStatus) String() string { |
| return proto.EnumName(BookingStatus_name, int32(x)) |
| } |
| func (BookingStatus) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } |
| |
| // Prepayment status of a booking. |
| // Updating payment status will trigger an update on the payment status of the |
| // associated booking (if applicable). |
| // Currently, the only supported transition is from PREPAYMENT_PROVIDED to |
| // PREPAYMENT_REFUNDED, which will initiate a non-reversible refund on the |
| // associated payment transaction. |
| type PrepaymentStatus int32 |
| |
| const ( |
| // Not specified, defaults to PREPAYMENT_NOT_PROVIDED. |
| PrepaymentStatus_PREPAYMENT_STATUS_UNSPECIFIED PrepaymentStatus = 0 |
| // The fee for the booking has been paid in advance. |
| PrepaymentStatus_PREPAYMENT_PROVIDED PrepaymentStatus = 1 |
| // The fee for the booking has not been paid in advance. |
| PrepaymentStatus_PREPAYMENT_NOT_PROVIDED PrepaymentStatus = 2 |
| // The fee was previously PREPAYMENT_PROVIDED but has now been refunded. |
| PrepaymentStatus_PREPAYMENT_REFUNDED PrepaymentStatus = 3 |
| // The fee was previously PREPAYMENT_PROVIDED but now has been credited |
| // (user given a UserPaymentOption as a voucher for the booking). |
| // If this is set, the response should also include the updated |
| // UserPaymentOption. |
| PrepaymentStatus_PREPAYMENT_CREDITED PrepaymentStatus = 4 |
| ) |
| |
| var PrepaymentStatus_name = map[int32]string{ |
| 0: "PREPAYMENT_STATUS_UNSPECIFIED", |
| 1: "PREPAYMENT_PROVIDED", |
| 2: "PREPAYMENT_NOT_PROVIDED", |
| 3: "PREPAYMENT_REFUNDED", |
| 4: "PREPAYMENT_CREDITED", |
| } |
| var PrepaymentStatus_value = map[string]int32{ |
| "PREPAYMENT_STATUS_UNSPECIFIED": 0, |
| "PREPAYMENT_PROVIDED": 1, |
| "PREPAYMENT_NOT_PROVIDED": 2, |
| "PREPAYMENT_REFUNDED": 3, |
| "PREPAYMENT_CREDITED": 4, |
| } |
| |
| func (x PrepaymentStatus) String() string { |
| return proto.EnumName(PrepaymentStatus_name, int32(x)) |
| } |
| func (PrepaymentStatus) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } |
| |
| type PaymentProcessingParameters_PaymentProcessor int32 |
| |
| const ( |
| PaymentProcessingParameters_PAYMENT_PROCESSOR_UNSPECIFIED PaymentProcessingParameters_PaymentProcessor = 0 |
| PaymentProcessingParameters_PROCESSOR_STRIPE PaymentProcessingParameters_PaymentProcessor = 1 |
| PaymentProcessingParameters_PROCESSOR_BRAINTREE PaymentProcessingParameters_PaymentProcessor = 2 |
| ) |
| |
| var PaymentProcessingParameters_PaymentProcessor_name = map[int32]string{ |
| 0: "PAYMENT_PROCESSOR_UNSPECIFIED", |
| 1: "PROCESSOR_STRIPE", |
| 2: "PROCESSOR_BRAINTREE", |
| } |
| var PaymentProcessingParameters_PaymentProcessor_value = map[string]int32{ |
| "PAYMENT_PROCESSOR_UNSPECIFIED": 0, |
| "PROCESSOR_STRIPE": 1, |
| "PROCESSOR_BRAINTREE": 2, |
| } |
| |
| func (x PaymentProcessingParameters_PaymentProcessor) String() string { |
| return proto.EnumName(PaymentProcessingParameters_PaymentProcessor_name, int32(x)) |
| } |
| func (PaymentProcessingParameters_PaymentProcessor) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor0, []int{6, 0} |
| } |
| |
| // Who handles payment processing? |
| // If payment is processed by the partner, CreateBooking request will |
| // include additional parameters (PaymentProcessingParameters) indicating |
| // the payment method to be used to process the payment. |
| type PaymentInformation_PaymentProcessedBy int32 |
| |
| const ( |
| PaymentInformation_PAYMENT_PROCESSED_BY_UNSPECIFIED PaymentInformation_PaymentProcessedBy = 0 |
| PaymentInformation_PROCESSED_BY_GOOGLE PaymentInformation_PaymentProcessedBy = 1 |
| PaymentInformation_PROCESSED_BY_PARTNER PaymentInformation_PaymentProcessedBy = 2 |
| ) |
| |
| var PaymentInformation_PaymentProcessedBy_name = map[int32]string{ |
| 0: "PAYMENT_PROCESSED_BY_UNSPECIFIED", |
| 1: "PROCESSED_BY_GOOGLE", |
| 2: "PROCESSED_BY_PARTNER", |
| } |
| var PaymentInformation_PaymentProcessedBy_value = map[string]int32{ |
| "PAYMENT_PROCESSED_BY_UNSPECIFIED": 0, |
| "PROCESSED_BY_GOOGLE": 1, |
| "PROCESSED_BY_PARTNER": 2, |
| } |
| |
| func (x PaymentInformation_PaymentProcessedBy) String() string { |
| return proto.EnumName(PaymentInformation_PaymentProcessedBy_name, int32(x)) |
| } |
| func (PaymentInformation_PaymentProcessedBy) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor0, []int{9, 0} |
| } |
| |
| type BookingFailure_Cause int32 |
| |
| const ( |
| // Default value: Don't use; amounts to an "unknown error" |
| BookingFailure_CAUSE_UNSPECIFIED BookingFailure_Cause = 0 |
| // The referenced availability slot is not available any longer. |
| BookingFailure_SLOT_UNAVAILABLE BookingFailure_Cause = 1 |
| // The user has already booked an appointment for the referenced |
| // availability slot. |
| BookingFailure_SLOT_ALREADY_BOOKED_BY_USER BookingFailure_Cause = 2 |
| // The lease (if provided) has expired and cannot be used any longer to |
| // complete the requested booking. |
| BookingFailure_LEASE_EXPIRED BookingFailure_Cause = 3 |
| // The requested cancellation cannot be performed at the current time due |
| // to time restrictions in the merchant's cancellation policy. |
| BookingFailure_OUTSIDE_CANCELLATION_WINDOW BookingFailure_Cause = 4 |
| // An error was encountered while processing the payment because the |
| // provided credit card type was not accepted by the merchant. The credit |
| // card type must be supplied in rejected_card_type. |
| BookingFailure_PAYMENT_ERROR_CARD_TYPE_REJECTED BookingFailure_Cause = 5 |
| // An error was encountered while processing the payment because the |
| // provided credit card was declined. |
| BookingFailure_PAYMENT_ERROR_CARD_DECLINED BookingFailure_Cause = 6 |
| // An error was encountered with the pack/membership used to pay for the |
| // booking. There could be no valid uses left, it could have expired, etc. |
| BookingFailure_PAYMENT_OPTION_NOT_VALID BookingFailure_Cause = 7 |
| // An error was encountered while processing the payment for this booking. |
| // Use this value to indicate a general payment related error, only if the |
| // error does not match to a specific payment error above. |
| BookingFailure_PAYMENT_ERROR BookingFailure_Cause = 8 |
| // User cannot use the given payment option (e.g. user trying to use a |
| // first time price for the second time). |
| BookingFailure_USER_CANNOT_USE_PAYMENT_OPTION BookingFailure_Cause = 9 |
| // A booking that the user tried to cancel has already been cancelled. |
| BookingFailure_BOOKING_ALREADY_CANCELLED BookingFailure_Cause = 10 |
| // A booking that the user tried to cancel is not cancellable. |
| BookingFailure_BOOKING_NOT_CANCELLABLE BookingFailure_Cause = 11 |
| ) |
| |
| var BookingFailure_Cause_name = map[int32]string{ |
| 0: "CAUSE_UNSPECIFIED", |
| 1: "SLOT_UNAVAILABLE", |
| 2: "SLOT_ALREADY_BOOKED_BY_USER", |
| 3: "LEASE_EXPIRED", |
| 4: "OUTSIDE_CANCELLATION_WINDOW", |
| 5: "PAYMENT_ERROR_CARD_TYPE_REJECTED", |
| 6: "PAYMENT_ERROR_CARD_DECLINED", |
| 7: "PAYMENT_OPTION_NOT_VALID", |
| 8: "PAYMENT_ERROR", |
| 9: "USER_CANNOT_USE_PAYMENT_OPTION", |
| 10: "BOOKING_ALREADY_CANCELLED", |
| 11: "BOOKING_NOT_CANCELLABLE", |
| } |
| var BookingFailure_Cause_value = map[string]int32{ |
| "CAUSE_UNSPECIFIED": 0, |
| "SLOT_UNAVAILABLE": 1, |
| "SLOT_ALREADY_BOOKED_BY_USER": 2, |
| "LEASE_EXPIRED": 3, |
| "OUTSIDE_CANCELLATION_WINDOW": 4, |
| "PAYMENT_ERROR_CARD_TYPE_REJECTED": 5, |
| "PAYMENT_ERROR_CARD_DECLINED": 6, |
| "PAYMENT_OPTION_NOT_VALID": 7, |
| "PAYMENT_ERROR": 8, |
| "USER_CANNOT_USE_PAYMENT_OPTION": 9, |
| "BOOKING_ALREADY_CANCELLED": 10, |
| "BOOKING_NOT_CANCELLABLE": 11, |
| } |
| |
| func (x BookingFailure_Cause) String() string { |
| return proto.EnumName(BookingFailure_Cause_name, int32(x)) |
| } |
| func (BookingFailure_Cause) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{10, 0} } |
| |
| // Set if cause is PAYMENT_ERROR_CARD_TYPE_REJECTED to indicate the type of |
| // credit card that was rejected. |
| type BookingFailure_CreditCardType int32 |
| |
| const ( |
| // Default value. Used if credit card type does not match to one below. |
| BookingFailure_CREDIT_CARD_TYPE_UNSPECIFIED BookingFailure_CreditCardType = 0 |
| BookingFailure_VISA BookingFailure_CreditCardType = 1 |
| BookingFailure_MASTERCARD BookingFailure_CreditCardType = 2 |
| BookingFailure_AMERICAN_EXPRESS BookingFailure_CreditCardType = 3 |
| BookingFailure_DISCOVER BookingFailure_CreditCardType = 4 |
| ) |
| |
| var BookingFailure_CreditCardType_name = map[int32]string{ |
| 0: "CREDIT_CARD_TYPE_UNSPECIFIED", |
| 1: "VISA", |
| 2: "MASTERCARD", |
| 3: "AMERICAN_EXPRESS", |
| 4: "DISCOVER", |
| } |
| var BookingFailure_CreditCardType_value = map[string]int32{ |
| "CREDIT_CARD_TYPE_UNSPECIFIED": 0, |
| "VISA": 1, |
| "MASTERCARD": 2, |
| "AMERICAN_EXPRESS": 3, |
| "DISCOVER": 4, |
| } |
| |
| func (x BookingFailure_CreditCardType) String() string { |
| return proto.EnumName(BookingFailure_CreditCardType_name, int32(x)) |
| } |
| func (BookingFailure_CreditCardType) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor0, []int{10, 1} |
| } |
| |
| // This enum indicates what requirements exist for the user to acknowledge or |
| // view the requested slots duration/end time. |
| type CheckAvailabilityResponse_DurationRequirement int32 |
| |
| const ( |
| // The handling of the end time is not specified. This is the default. |
| CheckAvailabilityResponse_DURATION_REQUIREMENT_UNSPECIFIED CheckAvailabilityResponse_DurationRequirement = 0 |
| // The end time is not shown to the user. |
| CheckAvailabilityResponse_DO_NOT_SHOW_DURATION CheckAvailabilityResponse_DurationRequirement = 1 |
| // The end time has to be shown to the user before an appointment can be |
| // made. |
| CheckAvailabilityResponse_MUST_SHOW_DURATION CheckAvailabilityResponse_DurationRequirement = 2 |
| ) |
| |
| var CheckAvailabilityResponse_DurationRequirement_name = map[int32]string{ |
| 0: "DURATION_REQUIREMENT_UNSPECIFIED", |
| 1: "DO_NOT_SHOW_DURATION", |
| 2: "MUST_SHOW_DURATION", |
| } |
| var CheckAvailabilityResponse_DurationRequirement_value = map[string]int32{ |
| "DURATION_REQUIREMENT_UNSPECIFIED": 0, |
| "DO_NOT_SHOW_DURATION": 1, |
| "MUST_SHOW_DURATION": 2, |
| } |
| |
| func (x CheckAvailabilityResponse_DurationRequirement) String() string { |
| return proto.EnumName(CheckAvailabilityResponse_DurationRequirement_name, int32(x)) |
| } |
| func (CheckAvailabilityResponse_DurationRequirement) EnumDescriptor() ([]byte, []int) { |
| return fileDescriptor0, []int{13, 0} |
| } |
| |
| // An inventory slot |
| type Slot struct { |
| // ID of the merchant for the slot |
| MerchantId string `protobuf:"bytes,1,opt,name=merchant_id,json=merchantId" json:"merchant_id,omitempty"` |
| // ID of the merchant service |
| ServiceId string `protobuf:"bytes,2,opt,name=service_id,json=serviceId" json:"service_id,omitempty"` |
| // Start time of the appointment slot |
| StartTime *google_protobuf2.Timestamp `protobuf:"bytes,3,opt,name=start_time,json=startTime" json:"start_time,omitempty"` |
| // Duration of the appointment slot |
| Duration *google_protobuf.Duration `protobuf:"bytes,4,opt,name=duration" json:"duration,omitempty"` |
| // Opaque tag that identifies the availability slot and matches the value |
| // provided in the availability feed |
| AvailabilityTag string `protobuf:"bytes,5,opt,name=availability_tag,json=availabilityTag" json:"availability_tag,omitempty"` |
| // The set of resources that disambiguates the appointment slot, e.g. by |
| // indicating the staff member and room selected by the user |
| Resources *Resources `protobuf:"bytes,6,opt,name=resources" json:"resources,omitempty"` |
| } |
| |
| func (m *Slot) Reset() { *m = Slot{} } |
| func (m *Slot) String() string { return proto.CompactTextString(m) } |
| func (*Slot) ProtoMessage() {} |
| func (*Slot) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } |
| |
| func (m *Slot) GetMerchantId() string { |
| if m != nil { |
| return m.MerchantId |
| } |
| return "" |
| } |
| |
| func (m *Slot) GetServiceId() string { |
| if m != nil { |
| return m.ServiceId |
| } |
| return "" |
| } |
| |
| func (m *Slot) GetStartTime() *google_protobuf2.Timestamp { |
| if m != nil { |
| return m.StartTime |
| } |
| return nil |
| } |
| |
| func (m *Slot) GetDuration() *google_protobuf.Duration { |
| if m != nil { |
| return m.Duration |
| } |
| return nil |
| } |
| |
| func (m *Slot) GetAvailabilityTag() string { |
| if m != nil { |
| return m.AvailabilityTag |
| } |
| return "" |
| } |
| |
| func (m *Slot) GetResources() *Resources { |
| if m != nil { |
| return m.Resources |
| } |
| return nil |
| } |
| |
| // Temporary lease for an inventory slot |
| type Lease struct { |
| // ID of the lease. |
| // Not populated in CreateLeaseRequest. The value is chosen by the partner and |
| // has to be returned in the response of CreateLease. |
| LeaseId string `protobuf:"bytes,1,opt,name=lease_id,json=leaseId" json:"lease_id,omitempty"` |
| // The appointment slot that the lease is created for. |
| Slot *Slot `protobuf:"bytes,2,opt,name=slot" json:"slot,omitempty"` |
| // Unique identifier for this lease, chosen by Reserve with Google. Serves as |
| // an idempotency token for [ext.maps.booking.partner.v2.CreateLease] |
| // requests. |
| UserReference string `protobuf:"bytes,3,opt,name=user_reference,json=userReference" json:"user_reference,omitempty"` |
| // Expiration time of the lease |
| LeaseExpirationTime *google_protobuf2.Timestamp `protobuf:"bytes,4,opt,name=lease_expiration_time,json=leaseExpirationTime" json:"lease_expiration_time,omitempty"` |
| } |
| |
| func (m *Lease) Reset() { *m = Lease{} } |
| func (m *Lease) String() string { return proto.CompactTextString(m) } |
| func (*Lease) ProtoMessage() {} |
| func (*Lease) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } |
| |
| func (m *Lease) GetLeaseId() string { |
| if m != nil { |
| return m.LeaseId |
| } |
| return "" |
| } |
| |
| func (m *Lease) GetSlot() *Slot { |
| if m != nil { |
| return m.Slot |
| } |
| return nil |
| } |
| |
| func (m *Lease) GetUserReference() string { |
| if m != nil { |
| return m.UserReference |
| } |
| return "" |
| } |
| |
| func (m *Lease) GetLeaseExpirationTime() *google_protobuf2.Timestamp { |
| if m != nil { |
| return m.LeaseExpirationTime |
| } |
| return nil |
| } |
| |
| // Reference to a [ext.maps.booking.partner.v2.Lease] that has been created via |
| // [ext.maps.booking.partner.v2.CreateLease] |
| type LeaseReference struct { |
| // Lease ID |
| LeaseId string `protobuf:"bytes,1,opt,name=lease_id,json=leaseId" json:"lease_id,omitempty"` |
| } |
| |
| func (m *LeaseReference) Reset() { *m = LeaseReference{} } |
| func (m *LeaseReference) String() string { return proto.CompactTextString(m) } |
| func (*LeaseReference) ProtoMessage() {} |
| func (*LeaseReference) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} } |
| |
| func (m *LeaseReference) GetLeaseId() string { |
| if m != nil { |
| return m.LeaseId |
| } |
| return "" |
| } |
| |
| // A booking for an inventory slot |
| type Booking struct { |
| // ID of this booking |
| BookingId string `protobuf:"bytes,1,opt,name=booking_id,json=bookingId" json:"booking_id,omitempty"` |
| // The appointment slot of this booking |
| Slot *Slot `protobuf:"bytes,2,opt,name=slot" json:"slot,omitempty"` |
| // Personal information of the user making the appointment |
| UserInformation *UserInformation `protobuf:"bytes,3,opt,name=user_information,json=userInformation" json:"user_information,omitempty"` |
| // Status of the booking |
| Status BookingStatus `protobuf:"varint,4,opt,name=status,enum=ext.maps.booking.partner.v2.BookingStatus" json:"status,omitempty"` |
| // Information about payment transactions that relate to the booking. |
| PaymentInformation *PaymentInformation `protobuf:"bytes,5,opt,name=payment_information,json=paymentInformation" json:"payment_information,omitempty"` |
| } |
| |
| func (m *Booking) Reset() { *m = Booking{} } |
| func (m *Booking) String() string { return proto.CompactTextString(m) } |
| func (*Booking) ProtoMessage() {} |
| func (*Booking) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} } |
| |
| func (m *Booking) GetBookingId() string { |
| if m != nil { |
| return m.BookingId |
| } |
| return "" |
| } |
| |
| func (m *Booking) GetSlot() *Slot { |
| if m != nil { |
| return m.Slot |
| } |
| return nil |
| } |
| |
| func (m *Booking) GetUserInformation() *UserInformation { |
| if m != nil { |
| return m.UserInformation |
| } |
| return nil |
| } |
| |
| func (m *Booking) GetStatus() BookingStatus { |
| if m != nil { |
| return m.Status |
| } |
| return BookingStatus_BOOKING_STATUS_UNSPECIFIED |
| } |
| |
| func (m *Booking) GetPaymentInformation() *PaymentInformation { |
| if m != nil { |
| return m.PaymentInformation |
| } |
| return nil |
| } |
| |
| // Personal information about the person making a booking |
| type UserInformation struct { |
| // Unique ID of the user to the partner, chosen by Reserve with Google. |
| UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId" json:"user_id,omitempty"` |
| // Given name of the user |
| GivenName string `protobuf:"bytes,2,opt,name=given_name,json=givenName" json:"given_name,omitempty"` |
| // Family name of the user |
| FamilyName string `protobuf:"bytes,3,opt,name=family_name,json=familyName" json:"family_name,omitempty"` |
| // Address of the user (optional) |
| Address *PostalAddress `protobuf:"bytes,4,opt,name=address" json:"address,omitempty"` |
| // Phone number of the user (optional) |
| Telephone string `protobuf:"bytes,5,opt,name=telephone" json:"telephone,omitempty"` |
| // Email address of the user |
| Email string `protobuf:"bytes,6,opt,name=email" json:"email,omitempty"` |
| } |
| |
| func (m *UserInformation) Reset() { *m = UserInformation{} } |
| func (m *UserInformation) String() string { return proto.CompactTextString(m) } |
| func (*UserInformation) ProtoMessage() {} |
| func (*UserInformation) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} } |
| |
| func (m *UserInformation) GetUserId() string { |
| if m != nil { |
| return m.UserId |
| } |
| return "" |
| } |
| |
| func (m *UserInformation) GetGivenName() string { |
| if m != nil { |
| return m.GivenName |
| } |
| return "" |
| } |
| |
| func (m *UserInformation) GetFamilyName() string { |
| if m != nil { |
| return m.FamilyName |
| } |
| return "" |
| } |
| |
| func (m *UserInformation) GetAddress() *PostalAddress { |
| if m != nil { |
| return m.Address |
| } |
| return nil |
| } |
| |
| func (m *UserInformation) GetTelephone() string { |
| if m != nil { |
| return m.Telephone |
| } |
| return "" |
| } |
| |
| func (m *UserInformation) GetEmail() string { |
| if m != nil { |
| return m.Email |
| } |
| return "" |
| } |
| |
| // Postal address for a user |
| type PostalAddress struct { |
| // The country, e.g. "USA". |
| AddressCountry string `protobuf:"bytes,1,opt,name=address_country,json=addressCountry" json:"address_country,omitempty"` |
| // The locality, e.g. "Mountain View". |
| AddressLocality string `protobuf:"bytes,2,opt,name=address_locality,json=addressLocality" json:"address_locality,omitempty"` |
| // The region, e.g. "CA". |
| AddressRegion string `protobuf:"bytes,3,opt,name=address_region,json=addressRegion" json:"address_region,omitempty"` |
| // The post office box number, e.g. "3112", optional. |
| PostOfficeBoxNumber string `protobuf:"bytes,4,opt,name=post_office_box_number,json=postOfficeBoxNumber" json:"post_office_box_number,omitempty"` |
| // The postal code, e.g. "94043". |
| PostalCode string `protobuf:"bytes,5,opt,name=postal_code,json=postalCode" json:"postal_code,omitempty"` |
| // The street address, e.g. "1600 Amphitheatre Pkwy". |
| StreetAddress string `protobuf:"bytes,6,opt,name=street_address,json=streetAddress" json:"street_address,omitempty"` |
| } |
| |
| func (m *PostalAddress) Reset() { *m = PostalAddress{} } |
| func (m *PostalAddress) String() string { return proto.CompactTextString(m) } |
| func (*PostalAddress) ProtoMessage() {} |
| func (*PostalAddress) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} } |
| |
| func (m *PostalAddress) GetAddressCountry() string { |
| if m != nil { |
| return m.AddressCountry |
| } |
| return "" |
| } |
| |
| func (m *PostalAddress) GetAddressLocality() string { |
| if m != nil { |
| return m.AddressLocality |
| } |
| return "" |
| } |
| |
| func (m *PostalAddress) GetAddressRegion() string { |
| if m != nil { |
| return m.AddressRegion |
| } |
| return "" |
| } |
| |
| func (m *PostalAddress) GetPostOfficeBoxNumber() string { |
| if m != nil { |
| return m.PostOfficeBoxNumber |
| } |
| return "" |
| } |
| |
| func (m *PostalAddress) GetPostalCode() string { |
| if m != nil { |
| return m.PostalCode |
| } |
| return "" |
| } |
| |
| func (m *PostalAddress) GetStreetAddress() string { |
| if m != nil { |
| return m.StreetAddress |
| } |
| return "" |
| } |
| |
| // Parameters to specify how the partner will process payment for a given |
| // booking. |
| // |
| // A sample request: |
| // processor: PROCESSOR_STRIPE |
| // payment_method_token: "pk_live_12345abcdef" |
| // version: "2017-06-15" |
| type PaymentProcessingParameters struct { |
| Processor PaymentProcessingParameters_PaymentProcessor `protobuf:"varint,1,opt,name=processor,enum=ext.maps.booking.partner.v2.PaymentProcessingParameters_PaymentProcessor" json:"processor,omitempty"` |
| // The token representing the payment method that will be used to pay |
| // for this booking. This token can be only used once. This token can be |
| // only used for the merchant associated with this booking. |
| // |
| // Each processor may choose its own format for this field. |
| // Stripe uses "pk_live_1234abc..." for live keys and "pk_test_1234abc..." |
| // for test keys. |
| PaymentMethodToken string `protobuf:"bytes,2,opt,name=payment_method_token,json=paymentMethodToken" json:"payment_method_token,omitempty"` |
| // The payment processor API version that the given payment token is valid |
| // for. |
| // |
| // Each processor may choose its own format for this field. |
| // Stripe uses a date (e.g. "2017-06-15"). |
| Version string `protobuf:"bytes,3,opt,name=version" json:"version,omitempty"` |
| } |
| |
| func (m *PaymentProcessingParameters) Reset() { *m = PaymentProcessingParameters{} } |
| func (m *PaymentProcessingParameters) String() string { return proto.CompactTextString(m) } |
| func (*PaymentProcessingParameters) ProtoMessage() {} |
| func (*PaymentProcessingParameters) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} } |
| |
| func (m *PaymentProcessingParameters) GetProcessor() PaymentProcessingParameters_PaymentProcessor { |
| if m != nil { |
| return m.Processor |
| } |
| return PaymentProcessingParameters_PAYMENT_PROCESSOR_UNSPECIFIED |
| } |
| |
| func (m *PaymentProcessingParameters) GetPaymentMethodToken() string { |
| if m != nil { |
| return m.PaymentMethodToken |
| } |
| return "" |
| } |
| |
| func (m *PaymentProcessingParameters) GetVersion() string { |
| if m != nil { |
| return m.Version |
| } |
| return "" |
| } |
| |
| type Price struct { |
| // The price in micro-units of the currency. |
| // Fractions of smallest currency unit will be rounded using nearest even |
| // rounding. (e.g. For USD 2.5 cents rounded to 2 cents, 3.5 cents rounded to |
| // 4 cents, 0.5 cents rounded to 0 cents, 2.51 cents rounded to 3 cents). |
| PriceMicros int64 `protobuf:"varint,1,opt,name=price_micros,json=priceMicros" json:"price_micros,omitempty"` |
| // The currency of the price that is defined in ISO 4217. |
| CurrencyCode string `protobuf:"bytes,2,opt,name=currency_code,json=currencyCode" json:"currency_code,omitempty"` |
| } |
| |
| func (m *Price) Reset() { *m = Price{} } |
| func (m *Price) String() string { return proto.CompactTextString(m) } |
| func (*Price) ProtoMessage() {} |
| func (*Price) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} } |
| |
| func (m *Price) GetPriceMicros() int64 { |
| if m != nil { |
| return m.PriceMicros |
| } |
| return 0 |
| } |
| |
| func (m *Price) GetCurrencyCode() string { |
| if m != nil { |
| return m.CurrencyCode |
| } |
| return "" |
| } |
| |
| // This describes a payment option, such as a pack, membership, or |
| // single-session pass after it has been purchased by a user. It includes an |
| // identifier for the user payment option, as well as some information about |
| // the payment option with which it is associated. |
| type UserPaymentOption struct { |
| // A unique identifier for the user payment option. This Id MUST be unique |
| // for all UserPaymentOptions across all merchants and users. |
| UserPaymentOptionId string `protobuf:"bytes,1,opt,name=user_payment_option_id,json=userPaymentOptionId" json:"user_payment_option_id,omitempty"` |
| // The user payment option will be valid (usable) between start_time and |
| // end_time. Attempts to use a user payment option to make a booking outside |
| // of this interval will fail. |
| ValidStartTime *google_protobuf2.Timestamp `protobuf:"bytes,2,opt,name=valid_start_time,json=validStartTime" json:"valid_start_time,omitempty"` |
| ValidEndTime *google_protobuf2.Timestamp `protobuf:"bytes,3,opt,name=valid_end_time,json=validEndTime" json:"valid_end_time,omitempty"` |
| // The type of the payment option associated with this user payment option. |
| // This can be unlimited for a membership or subscription, multi-use for a |
| // pack, or single-use. |
| Type PaymentOptionType `protobuf:"varint,4,opt,name=type,enum=ext.maps.booking.partner.v2.PaymentOptionType" json:"type,omitempty"` |
| // The original number of uses for this user payment option when it was |
| // purchased. This value is ignored for unlimited payment options. |
| OriginalCount int32 `protobuf:"varint,5,opt,name=original_count,json=originalCount" json:"original_count,omitempty"` |
| // The number of uses remaining for this user payment option. If this number |
| // is 0 for a pack, attempts to use this payment option to make a booking will |
| // fail. |
| CurrentCount int32 `protobuf:"varint,6,opt,name=current_count,json=currentCount" json:"current_count,omitempty"` |
| // The id of the payment option that has been used to purchase this user |
| // payment option. |
| PaymentOptionId string `protobuf:"bytes,7,opt,name=payment_option_id,json=paymentOptionId" json:"payment_option_id,omitempty"` |
| } |
| |
| func (m *UserPaymentOption) Reset() { *m = UserPaymentOption{} } |
| func (m *UserPaymentOption) String() string { return proto.CompactTextString(m) } |
| func (*UserPaymentOption) ProtoMessage() {} |
| func (*UserPaymentOption) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{8} } |
| |
| func (m *UserPaymentOption) GetUserPaymentOptionId() string { |
| if m != nil { |
| return m.UserPaymentOptionId |
| } |
| return "" |
| } |
| |
| func (m *UserPaymentOption) GetValidStartTime() *google_protobuf2.Timestamp { |
| if m != nil { |
| return m.ValidStartTime |
| } |
| return nil |
| } |
| |
| func (m *UserPaymentOption) GetValidEndTime() *google_protobuf2.Timestamp { |
| if m != nil { |
| return m.ValidEndTime |
| } |
| return nil |
| } |
| |
| func (m *UserPaymentOption) GetType() PaymentOptionType { |
| if m != nil { |
| return m.Type |
| } |
| return PaymentOptionType_PAYMENT_OPTION_TYPE_UNSPECIFIED |
| } |
| |
| func (m *UserPaymentOption) GetOriginalCount() int32 { |
| if m != nil { |
| return m.OriginalCount |
| } |
| return 0 |
| } |
| |
| func (m *UserPaymentOption) GetCurrentCount() int32 { |
| if m != nil { |
| return m.CurrentCount |
| } |
| return 0 |
| } |
| |
| func (m *UserPaymentOption) GetPaymentOptionId() string { |
| if m != nil { |
| return m.PaymentOptionId |
| } |
| return "" |
| } |
| |
| // Payment details that are sent when creating a new booking. |
| type PaymentInformation struct { |
| // Prepayment status of the booking. |
| // If the prepayment_status is PREPAYMENT_PROVIDED, then |
| // payment_transaction_id contains the associated unique transaction id for |
| // the purchase. |
| // If the prepayment status is PREPAYMENT_REFUNDED, then |
| // payment_transaction_id contains the associated unique transaction id for |
| // the refund. |
| PrepaymentStatus PrepaymentStatus `protobuf:"varint,1,opt,name=prepayment_status,json=prepaymentStatus,enum=ext.maps.booking.partner.v2.PrepaymentStatus" json:"prepayment_status,omitempty"` |
| // Unique identifier for a payment transaction associated with the booking. |
| // Empty if not applicable. |
| PaymentTransactionId string `protobuf:"bytes,2,opt,name=payment_transaction_id,json=paymentTransactionId" json:"payment_transaction_id,omitempty"` |
| // These fields must match the service price (specified in the Services feed) |
| // or the PaymentOption corresponding with this service. |
| // They are included in the booking request and response to verify that |
| // the price indicated in the feed has not changed since the last feed |
| // update. |
| // |
| // The price of the booking, exclusive of any taxes. |
| // Existence of price or taxes does not imply that they have been paid, |
| // prepayment_state should be used for that purpose. |
| Price *Price `protobuf:"bytes,3,opt,name=price" json:"price,omitempty"` |
| // Taxes that are calculated to be paid for this booking. |
| // If this field is absent the price is assumed to be exempt from or already |
| // inclusive of applicable taxes. |
| TaxAmount *Price `protobuf:"bytes,4,opt,name=tax_amount,json=taxAmount" json:"tax_amount,omitempty"` |
| PaymentProcessedBy PaymentInformation_PaymentProcessedBy `protobuf:"varint,5,opt,name=payment_processed_by,json=paymentProcessedBy,enum=ext.maps.booking.partner.v2.PaymentInformation_PaymentProcessedBy" json:"payment_processed_by,omitempty"` |
| // The id of the payment option or user payment option associated with the |
| // booking. |
| // If a payment option is purchased as part of a booking, payment_option_id |
| // will be set with the id of that payment option. |
| // If an already purchased user payment option is being used to pay for a |
| // booking, user_payment_option_id will be set with the id of that user |
| // payment option. |
| // When included as part of a response proto, the user_payment_option_id |
| // should be set and must match the UserPaymentOption that is returned in the |
| // RPC response (e.g. the user_payment_option returned in |
| // CreateBookingResponse). |
| // |
| // Types that are valid to be assigned to PaymentId: |
| // *PaymentInformation_PaymentOptionId |
| // *PaymentInformation_UserPaymentOptionId |
| PaymentId isPaymentInformation_PaymentId `protobuf_oneof:"payment_id"` |
| } |
| |
| func (m *PaymentInformation) Reset() { *m = PaymentInformation{} } |
| func (m *PaymentInformation) String() string { return proto.CompactTextString(m) } |
| func (*PaymentInformation) ProtoMessage() {} |
| func (*PaymentInformation) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{9} } |
| |
| type isPaymentInformation_PaymentId interface { |
| isPaymentInformation_PaymentId() |
| } |
| |
| type PaymentInformation_PaymentOptionId struct { |
| PaymentOptionId string `protobuf:"bytes,6,opt,name=payment_option_id,json=paymentOptionId,oneof"` |
| } |
| type PaymentInformation_UserPaymentOptionId struct { |
| UserPaymentOptionId string `protobuf:"bytes,7,opt,name=user_payment_option_id,json=userPaymentOptionId,oneof"` |
| } |
| |
| func (*PaymentInformation_PaymentOptionId) isPaymentInformation_PaymentId() {} |
| func (*PaymentInformation_UserPaymentOptionId) isPaymentInformation_PaymentId() {} |
| |
| func (m *PaymentInformation) GetPaymentId() isPaymentInformation_PaymentId { |
| if m != nil { |
| return m.PaymentId |
| } |
| return nil |
| } |
| |
| func (m *PaymentInformation) GetPrepaymentStatus() PrepaymentStatus { |
| if m != nil { |
| return m.PrepaymentStatus |
| } |
| return PrepaymentStatus_PREPAYMENT_STATUS_UNSPECIFIED |
| } |
| |
| func (m *PaymentInformation) GetPaymentTransactionId() string { |
| if m != nil { |
| return m.PaymentTransactionId |
| } |
| return "" |
| } |
| |
| func (m *PaymentInformation) GetPrice() *Price { |
| if m != nil { |
| return m.Price |
| } |
| return nil |
| } |
| |
| func (m *PaymentInformation) GetTaxAmount() *Price { |
| if m != nil { |
| return m.TaxAmount |
| } |
| return nil |
| } |
| |
| func (m *PaymentInformation) GetPaymentProcessedBy() PaymentInformation_PaymentProcessedBy { |
| if m != nil { |
| return m.PaymentProcessedBy |
| } |
| return PaymentInformation_PAYMENT_PROCESSED_BY_UNSPECIFIED |
| } |
| |
| func (m *PaymentInformation) GetPaymentOptionId() string { |
| if x, ok := m.GetPaymentId().(*PaymentInformation_PaymentOptionId); ok { |
| return x.PaymentOptionId |
| } |
| return "" |
| } |
| |
| func (m *PaymentInformation) GetUserPaymentOptionId() string { |
| if x, ok := m.GetPaymentId().(*PaymentInformation_UserPaymentOptionId); ok { |
| return x.UserPaymentOptionId |
| } |
| return "" |
| } |
| |
| // XXX_OneofFuncs is for the internal use of the proto package. |
| func (*PaymentInformation) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { |
| return _PaymentInformation_OneofMarshaler, _PaymentInformation_OneofUnmarshaler, _PaymentInformation_OneofSizer, []interface{}{ |
| (*PaymentInformation_PaymentOptionId)(nil), |
| (*PaymentInformation_UserPaymentOptionId)(nil), |
| } |
| } |
| |
| func _PaymentInformation_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { |
| m := msg.(*PaymentInformation) |
| // payment_id |
| switch x := m.PaymentId.(type) { |
| case *PaymentInformation_PaymentOptionId: |
| b.EncodeVarint(6<<3 | proto.WireBytes) |
| b.EncodeStringBytes(x.PaymentOptionId) |
| case *PaymentInformation_UserPaymentOptionId: |
| b.EncodeVarint(7<<3 | proto.WireBytes) |
| b.EncodeStringBytes(x.UserPaymentOptionId) |
| case nil: |
| default: |
| return fmt.Errorf("PaymentInformation.PaymentId has unexpected type %T", x) |
| } |
| return nil |
| } |
| |
| func _PaymentInformation_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) { |
| m := msg.(*PaymentInformation) |
| switch tag { |
| case 6: // payment_id.payment_option_id |
| if wire != proto.WireBytes { |
| return true, proto.ErrInternalBadWireType |
| } |
| x, err := b.DecodeStringBytes() |
| m.PaymentId = &PaymentInformation_PaymentOptionId{x} |
| return true, err |
| case 7: // payment_id.user_payment_option_id |
| if wire != proto.WireBytes { |
| return true, proto.ErrInternalBadWireType |
| } |
| x, err := b.DecodeStringBytes() |
| m.PaymentId = &PaymentInformation_UserPaymentOptionId{x} |
| return true, err |
| default: |
| return false, nil |
| } |
| } |
| |
| func _PaymentInformation_OneofSizer(msg proto.Message) (n int) { |
| m := msg.(*PaymentInformation) |
| // payment_id |
| switch x := m.PaymentId.(type) { |
| case *PaymentInformation_PaymentOptionId: |
| n += proto.SizeVarint(6<<3 | proto.WireBytes) |
| n += proto.SizeVarint(uint64(len(x.PaymentOptionId))) |
| n += len(x.PaymentOptionId) |
| case *PaymentInformation_UserPaymentOptionId: |
| n += proto.SizeVarint(7<<3 | proto.WireBytes) |
| n += proto.SizeVarint(uint64(len(x.UserPaymentOptionId))) |
| n += len(x.UserPaymentOptionId) |
| case nil: |
| default: |
| panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) |
| } |
| return n |
| } |
| |
| // Status data that conveys why (1) creating a lease or (2) creating or updating |
| // a booking fails. |
| // BookingFailure is intended to primarily capture business logic errors. |
| type BookingFailure struct { |
| Cause BookingFailure_Cause `protobuf:"varint,1,opt,name=cause,enum=ext.maps.booking.partner.v2.BookingFailure_Cause" json:"cause,omitempty"` |
| RejectedCardType BookingFailure_CreditCardType `protobuf:"varint,2,opt,name=rejected_card_type,json=rejectedCardType,enum=ext.maps.booking.partner.v2.BookingFailure_CreditCardType" json:"rejected_card_type,omitempty"` |
| // This optional field is used for the partner to include additional |
| // information for debugging purpose only. |
| Description string `protobuf:"bytes,3,opt,name=description" json:"description,omitempty"` |
| } |
| |
| func (m *BookingFailure) Reset() { *m = BookingFailure{} } |
| func (m *BookingFailure) String() string { return proto.CompactTextString(m) } |
| func (*BookingFailure) ProtoMessage() {} |
| func (*BookingFailure) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{10} } |
| |
| func (m *BookingFailure) GetCause() BookingFailure_Cause { |
| if m != nil { |
| return m.Cause |
| } |
| return BookingFailure_CAUSE_UNSPECIFIED |
| } |
| |
| func (m *BookingFailure) GetRejectedCardType() BookingFailure_CreditCardType { |
| if m != nil { |
| return m.RejectedCardType |
| } |
| return BookingFailure_CREDIT_CARD_TYPE_UNSPECIFIED |
| } |
| |
| func (m *BookingFailure) GetDescription() string { |
| if m != nil { |
| return m.Description |
| } |
| return "" |
| } |
| |
| // Resource specification that disambiguates an appointment slot |
| type Resources struct { |
| // The staff ID as provided in the feed or empty if not applicable or no staff |
| // was selected. |
| StaffId string `protobuf:"bytes,1,opt,name=staff_id,json=staffId" json:"staff_id,omitempty"` |
| // The room ID as provided in the feed or empty if not applicable or no room |
| // was selected. |
| RoomId string `protobuf:"bytes,2,opt,name=room_id,json=roomId" json:"room_id,omitempty"` |
| // For Dining Reservations only: the number of seats requested in the booking. |
| PartySize int32 `protobuf:"varint,3,opt,name=party_size,json=partySize" json:"party_size,omitempty"` |
| } |
| |
| func (m *Resources) Reset() { *m = Resources{} } |
| func (m *Resources) String() string { return proto.CompactTextString(m) } |
| func (*Resources) ProtoMessage() {} |
| func (*Resources) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{11} } |
| |
| func (m *Resources) GetStaffId() string { |
| if m != nil { |
| return m.StaffId |
| } |
| return "" |
| } |
| |
| func (m *Resources) GetRoomId() string { |
| if m != nil { |
| return m.RoomId |
| } |
| return "" |
| } |
| |
| func (m *Resources) GetPartySize() int32 { |
| if m != nil { |
| return m.PartySize |
| } |
| return 0 |
| } |
| |
| // Request to check availability for a [ext.maps.booking.partner.v2.Slot] |
| type CheckAvailabilityRequest struct { |
| // The appointment slot that is being checked |
| Slot *Slot `protobuf:"bytes,1,opt,name=slot" json:"slot,omitempty"` |
| } |
| |
| func (m *CheckAvailabilityRequest) Reset() { *m = CheckAvailabilityRequest{} } |
| func (m *CheckAvailabilityRequest) String() string { return proto.CompactTextString(m) } |
| func (*CheckAvailabilityRequest) ProtoMessage() {} |
| func (*CheckAvailabilityRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{12} } |
| |
| func (m *CheckAvailabilityRequest) GetSlot() *Slot { |
| if m != nil { |
| return m.Slot |
| } |
| return nil |
| } |
| |
| // Response for the [ext.maps.booking.partner.v2.CheckAvailability] RPC with the |
| // availability of the appointment slot |
| type CheckAvailabilityResponse struct { |
| // The requested slot. |
| Slot *Slot `protobuf:"bytes,1,opt,name=slot" json:"slot,omitempty"` |
| // Number of available spots. |
| // 0 indicates that the appointment slot is not available. |
| CountAvailable int32 `protobuf:"varint,2,opt,name=count_available,json=countAvailable" json:"count_available,omitempty"` |
| // Optionally, return the requirement to show the slots duration and/or |
| // endtime. This field will be ignored if slot is unavailable. |
| DurationRequirement CheckAvailabilityResponse_DurationRequirement `protobuf:"varint,3,opt,name=duration_requirement,json=durationRequirement,enum=ext.maps.booking.partner.v2.CheckAvailabilityResponse_DurationRequirement" json:"duration_requirement,omitempty"` |
| } |
| |
| func (m *CheckAvailabilityResponse) Reset() { *m = CheckAvailabilityResponse{} } |
| func (m *CheckAvailabilityResponse) String() string { return proto.CompactTextString(m) } |
| func (*CheckAvailabilityResponse) ProtoMessage() {} |
| func (*CheckAvailabilityResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{13} } |
| |
| func (m *CheckAvailabilityResponse) GetSlot() *Slot { |
| if m != nil { |
| return m.Slot |
| } |
| return nil |
| } |
| |
| func (m *CheckAvailabilityResponse) GetCountAvailable() int32 { |
| if m != nil { |
| return m.CountAvailable |
| } |
| return 0 |
| } |
| |
| func (m *CheckAvailabilityResponse) GetDurationRequirement() CheckAvailabilityResponse_DurationRequirement { |
| if m != nil { |
| return m.DurationRequirement |
| } |
| return CheckAvailabilityResponse_DURATION_REQUIREMENT_UNSPECIFIED |
| } |
| |
| // Request to create a [ext.maps.booking.partner.v2.Lease] for a slot in the |
| // inventory. The expiration time in the returned Lease may be modified by the |
| // backend, e.g. if the requested lease period is too long. |
| type CreateLeaseRequest struct { |
| // The lease to be created with information about the appointment slot |
| Lease *Lease `protobuf:"bytes,1,opt,name=lease" json:"lease,omitempty"` |
| } |
| |
| func (m *CreateLeaseRequest) Reset() { *m = CreateLeaseRequest{} } |
| func (m *CreateLeaseRequest) String() string { return proto.CompactTextString(m) } |
| func (*CreateLeaseRequest) ProtoMessage() {} |
| func (*CreateLeaseRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{14} } |
| |
| func (m *CreateLeaseRequest) GetLease() *Lease { |
| if m != nil { |
| return m.Lease |
| } |
| return nil |
| } |
| |
| // Response for the [ext.maps.booking.partner.v2.CreateLease] RPC with the |
| // created [ext.maps.booking.partner.v2.Lease] |
| type CreateLeaseResponse struct { |
| // The created [ext.maps.booking.partner.v2.Lease] |
| Lease *Lease `protobuf:"bytes,1,opt,name=lease" json:"lease,omitempty"` |
| // If creating a lease fails, this field should reflect the business logic |
| // error (e.g., slot has become unavailable) and lease field is expected to be |
| // unset. |
| BookingFailure *BookingFailure `protobuf:"bytes,2,opt,name=booking_failure,json=bookingFailure" json:"booking_failure,omitempty"` |
| } |
| |
| func (m *CreateLeaseResponse) Reset() { *m = CreateLeaseResponse{} } |
| func (m *CreateLeaseResponse) String() string { return proto.CompactTextString(m) } |
| func (*CreateLeaseResponse) ProtoMessage() {} |
| func (*CreateLeaseResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{15} } |
| |
| func (m *CreateLeaseResponse) GetLease() *Lease { |
| if m != nil { |
| return m.Lease |
| } |
| return nil |
| } |
| |
| func (m *CreateLeaseResponse) GetBookingFailure() *BookingFailure { |
| if m != nil { |
| return m.BookingFailure |
| } |
| return nil |
| } |
| |
| // Request to create a [ext.maps.booking.partner.v2.Booking] for an inventory |
| // slot. Consumes the lease if provided. |
| type CreateBookingRequest struct { |
| // The inventory slot that is being requested to make this booking. |
| // If lease_ref is provided, slot must match the lease; slot is provided for |
| // the partner to verify the lease information. |
| // If lease_ref is absent, then create the booking for the slot. |
| Slot *Slot `protobuf:"bytes,1,opt,name=slot" json:"slot,omitempty"` |
| // The lease that is being confirmed to make this booking. |
| // If lease_ref is provided, then create the booking using the lease. |
| LeaseRef *LeaseReference `protobuf:"bytes,2,opt,name=lease_ref,json=leaseRef" json:"lease_ref,omitempty"` |
| // Personal information of the user making the appointment |
| UserInformation *UserInformation `protobuf:"bytes,3,opt,name=user_information,json=userInformation" json:"user_information,omitempty"` |
| // Information about payments. When payment authorizations are handled by |
| // Google, if the booking request does not succeed, payment authorizations are |
| // automatically canceled. |
| PaymentInformation *PaymentInformation `protobuf:"bytes,4,opt,name=payment_information,json=paymentInformation" json:"payment_information,omitempty"` |
| // The parameters to be used if the payment is processed by the partner |
| // (i.e. payment_information.payment_processed_by is equal to |
| // PROCESSED_BY_PARTNER). |
| PaymentProcessingParameters *PaymentProcessingParameters `protobuf:"bytes,5,opt,name=payment_processing_parameters,json=paymentProcessingParameters" json:"payment_processing_parameters,omitempty"` |
| // Idempotency token for [ext.maps.booking.partner.v2.CreateBooking] requests. |
| IdempotencyToken string `protobuf:"bytes,6,opt,name=idempotency_token,json=idempotencyToken" json:"idempotency_token,omitempty"` |
| } |
| |
| func (m *CreateBookingRequest) Reset() { *m = CreateBookingRequest{} } |
| func (m *CreateBookingRequest) String() string { return proto.CompactTextString(m) } |
| func (*CreateBookingRequest) ProtoMessage() {} |
| func (*CreateBookingRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{16} } |
| |
| func (m *CreateBookingRequest) GetSlot() *Slot { |
| if m != nil { |
| return m.Slot |
| } |
| return nil |
| } |
| |
| func (m *CreateBookingRequest) GetLeaseRef() *LeaseReference { |
| if m != nil { |
| return m.LeaseRef |
| } |
| return nil |
| } |
| |
| func (m *CreateBookingRequest) GetUserInformation() *UserInformation { |
| if m != nil { |
| return m.UserInformation |
| } |
| return nil |
| } |
| |
| func (m *CreateBookingRequest) GetPaymentInformation() *PaymentInformation { |
| if m != nil { |
| return m.PaymentInformation |
| } |
| return nil |
| } |
| |
| func (m *CreateBookingRequest) GetPaymentProcessingParameters() *PaymentProcessingParameters { |
| if m != nil { |
| return m.PaymentProcessingParameters |
| } |
| return nil |
| } |
| |
| func (m *CreateBookingRequest) GetIdempotencyToken() string { |
| if m != nil { |
| return m.IdempotencyToken |
| } |
| return "" |
| } |
| |
| // Response with the created [ext.maps.booking.partner.v2.Booking] for an |
| // inventory slot |
| type CreateBookingResponse struct { |
| // The created booking |
| Booking *Booking `protobuf:"bytes,1,opt,name=booking" json:"booking,omitempty"` |
| // The updated user payment option used in this booking. |
| // If a new payment option was purchased to pay for the booking, this should |
| // be a newly created user payment option. |
| // If an already purchased user payment option was used for this booking, |
| // this should reflect an updated version of that user payment option. |
| UserPaymentOption *UserPaymentOption `protobuf:"bytes,2,opt,name=user_payment_option,json=userPaymentOption" json:"user_payment_option,omitempty"` |
| // If creating a booking fails, this field should reflect the business logic |
| // error (e.g., slot has become unavailable) and all other fields in the |
| // CreateBookingResponse message are expected to be unset. |
| BookingFailure *BookingFailure `protobuf:"bytes,3,opt,name=booking_failure,json=bookingFailure" json:"booking_failure,omitempty"` |
| } |
| |
| func (m *CreateBookingResponse) Reset() { *m = CreateBookingResponse{} } |
| func (m *CreateBookingResponse) String() string { return proto.CompactTextString(m) } |
| func (*CreateBookingResponse) ProtoMessage() {} |
| func (*CreateBookingResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{17} } |
| |
| func (m *CreateBookingResponse) GetBooking() *Booking { |
| if m != nil { |
| return m.Booking |
| } |
| return nil |
| } |
| |
| func (m *CreateBookingResponse) GetUserPaymentOption() *UserPaymentOption { |
| if m != nil { |
| return m.UserPaymentOption |
| } |
| return nil |
| } |
| |
| func (m *CreateBookingResponse) GetBookingFailure() *BookingFailure { |
| if m != nil { |
| return m.BookingFailure |
| } |
| return nil |
| } |
| |
| // Request to update a [ext.maps.booking.partner.v2.Booking] |
| type UpdateBookingRequest struct { |
| // Field mask of all booking fields to be updated |
| UpdateMask *google_protobuf1.FieldMask `protobuf:"bytes,1,opt,name=update_mask,json=updateMask" json:"update_mask,omitempty"` |
| // The booking to be updated |
| // The following fields can be set in a booking: |
| // - status, to cancel a booking. |
| // - start_time and duration in the slot, to reschedule a booking. |
| Booking *Booking `protobuf:"bytes,2,opt,name=booking" json:"booking,omitempty"` |
| } |
| |
| func (m *UpdateBookingRequest) Reset() { *m = UpdateBookingRequest{} } |
| func (m *UpdateBookingRequest) String() string { return proto.CompactTextString(m) } |
| func (*UpdateBookingRequest) ProtoMessage() {} |
| func (*UpdateBookingRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{18} } |
| |
| func (m *UpdateBookingRequest) GetUpdateMask() *google_protobuf1.FieldMask { |
| if m != nil { |
| return m.UpdateMask |
| } |
| return nil |
| } |
| |
| func (m *UpdateBookingRequest) GetBooking() *Booking { |
| if m != nil { |
| return m.Booking |
| } |
| return nil |
| } |
| |
| // Response with the updated [ext.maps.booking.partner.v2.Booking] |
| type UpdateBookingResponse struct { |
| // The updated booking |
| Booking *Booking `protobuf:"bytes,1,opt,name=booking" json:"booking,omitempty"` |
| // The updated user payment option originally used to pay for this booking. |
| // This should be set if the UpdateBookingRequest results in a change to |
| // the UserPaymentOption. |
| // For instance, if the booking is canceled, the UserPaymentOption should |
| // reflect an additional credit to the user. In the case of a multi-use |
| // payment option, the current_count should be increased by one to |
| // allow the user to create another booking with this payment option. In the |
| // case of a single-use payment option, a new single-use user payment option |
| // should be returned. |
| UserPaymentOption *UserPaymentOption `protobuf:"bytes,2,opt,name=user_payment_option,json=userPaymentOption" json:"user_payment_option,omitempty"` |
| // If updating a booking fails, this field should reflect the business logic |
| // error (e.g., booking is not cancellable) |
| BookingFailure *BookingFailure `protobuf:"bytes,3,opt,name=booking_failure,json=bookingFailure" json:"booking_failure,omitempty"` |
| } |
| |
| func (m *UpdateBookingResponse) Reset() { *m = UpdateBookingResponse{} } |
| func (m *UpdateBookingResponse) String() string { return proto.CompactTextString(m) } |
| func (*UpdateBookingResponse) ProtoMessage() {} |
| func (*UpdateBookingResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{19} } |
| |
| func (m *UpdateBookingResponse) GetBooking() *Booking { |
| if m != nil { |
| return m.Booking |
| } |
| return nil |
| } |
| |
| func (m *UpdateBookingResponse) GetUserPaymentOption() *UserPaymentOption { |
| if m != nil { |
| return m.UserPaymentOption |
| } |
| return nil |
| } |
| |
| func (m *UpdateBookingResponse) GetBookingFailure() *BookingFailure { |
| if m != nil { |
| return m.BookingFailure |
| } |
| return nil |
| } |
| |
| // Request to get booking status and prepayment status for a |
| // [ext.maps.booking.partner.v2.Booking] |
| type GetBookingStatusRequest struct { |
| // ID of the existing booking |
| BookingId string `protobuf:"bytes,1,opt,name=booking_id,json=bookingId" json:"booking_id,omitempty"` |
| } |
| |
| func (m *GetBookingStatusRequest) Reset() { *m = GetBookingStatusRequest{} } |
| func (m *GetBookingStatusRequest) String() string { return proto.CompactTextString(m) } |
| func (*GetBookingStatusRequest) ProtoMessage() {} |
| func (*GetBookingStatusRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{20} } |
| |
| func (m *GetBookingStatusRequest) GetBookingId() string { |
| if m != nil { |
| return m.BookingId |
| } |
| return "" |
| } |
| |
| // Response for the [ext.maps.booking.partner.v2.GetBookingStatus] RPC with |
| // booking status and prepayment status |
| type GetBookingStatusResponse struct { |
| // ID of the booking |
| BookingId string `protobuf:"bytes,1,opt,name=booking_id,json=bookingId" json:"booking_id,omitempty"` |
| // Status of the booking |
| BookingStatus BookingStatus `protobuf:"varint,2,opt,name=booking_status,json=bookingStatus,enum=ext.maps.booking.partner.v2.BookingStatus" json:"booking_status,omitempty"` |
| // Prepayment status of the booking |
| PrepaymentStatus PrepaymentStatus `protobuf:"varint,3,opt,name=prepayment_status,json=prepaymentStatus,enum=ext.maps.booking.partner.v2.PrepaymentStatus" json:"prepayment_status,omitempty"` |
| } |
| |
| func (m *GetBookingStatusResponse) Reset() { *m = GetBookingStatusResponse{} } |
| func (m *GetBookingStatusResponse) String() string { return proto.CompactTextString(m) } |
| func (*GetBookingStatusResponse) ProtoMessage() {} |
| func (*GetBookingStatusResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{21} } |
| |
| func (m *GetBookingStatusResponse) GetBookingId() string { |
| if m != nil { |
| return m.BookingId |
| } |
| return "" |
| } |
| |
| func (m *GetBookingStatusResponse) GetBookingStatus() BookingStatus { |
| if m != nil { |
| return m.BookingStatus |
| } |
| return BookingStatus_BOOKING_STATUS_UNSPECIFIED |
| } |
| |
| func (m *GetBookingStatusResponse) GetPrepaymentStatus() PrepaymentStatus { |
| if m != nil { |
| return m.PrepaymentStatus |
| } |
| return PrepaymentStatus_PREPAYMENT_STATUS_UNSPECIFIED |
| } |
| |
| // Request to list all bookings for a user |
| type ListBookingsRequest struct { |
| // ID of the user |
| UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId" json:"user_id,omitempty"` |
| } |
| |
| func (m *ListBookingsRequest) Reset() { *m = ListBookingsRequest{} } |
| func (m *ListBookingsRequest) String() string { return proto.CompactTextString(m) } |
| func (*ListBookingsRequest) ProtoMessage() {} |
| func (*ListBookingsRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{22} } |
| |
| func (m *ListBookingsRequest) GetUserId() string { |
| if m != nil { |
| return m.UserId |
| } |
| return "" |
| } |
| |
| // Response for the [ext.maps.booking.partner.v2.ListBookings] RPC with all |
| // bookings for the requested user |
| type ListBookingsResponse struct { |
| // All bookings of the user |
| Bookings []*Booking `protobuf:"bytes,1,rep,name=bookings" json:"bookings,omitempty"` |
| } |
| |
| func (m *ListBookingsResponse) Reset() { *m = ListBookingsResponse{} } |
| func (m *ListBookingsResponse) String() string { return proto.CompactTextString(m) } |
| func (*ListBookingsResponse) ProtoMessage() {} |
| func (*ListBookingsResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{23} } |
| |
| func (m *ListBookingsResponse) GetBookings() []*Booking { |
| if m != nil { |
| return m.Bookings |
| } |
| return nil |
| } |
| |
| func init() { |
| proto.RegisterType((*Slot)(nil), "ext.maps.booking.partner.v2.Slot") |
| proto.RegisterType((*Lease)(nil), "ext.maps.booking.partner.v2.Lease") |
| proto.RegisterType((*LeaseReference)(nil), "ext.maps.booking.partner.v2.LeaseReference") |
| proto.RegisterType((*Booking)(nil), "ext.maps.booking.partner.v2.Booking") |
| proto.RegisterType((*UserInformation)(nil), "ext.maps.booking.partner.v2.UserInformation") |
| proto.RegisterType((*PostalAddress)(nil), "ext.maps.booking.partner.v2.PostalAddress") |
| proto.RegisterType((*PaymentProcessingParameters)(nil), "ext.maps.booking.partner.v2.PaymentProcessingParameters") |
| proto.RegisterType((*Price)(nil), "ext.maps.booking.partner.v2.Price") |
| proto.RegisterType((*UserPaymentOption)(nil), "ext.maps.booking.partner.v2.UserPaymentOption") |
| proto.RegisterType((*PaymentInformation)(nil), "ext.maps.booking.partner.v2.PaymentInformation") |
| proto.RegisterType((*BookingFailure)(nil), "ext.maps.booking.partner.v2.BookingFailure") |
| proto.RegisterType((*Resources)(nil), "ext.maps.booking.partner.v2.Resources") |
| proto.RegisterType((*CheckAvailabilityRequest)(nil), "ext.maps.booking.partner.v2.CheckAvailabilityRequest") |
| proto.RegisterType((*CheckAvailabilityResponse)(nil), "ext.maps.booking.partner.v2.CheckAvailabilityResponse") |
| proto.RegisterType((*CreateLeaseRequest)(nil), "ext.maps.booking.partner.v2.CreateLeaseRequest") |
| proto.RegisterType((*CreateLeaseResponse)(nil), "ext.maps.booking.partner.v2.CreateLeaseResponse") |
| proto.RegisterType((*CreateBookingRequest)(nil), "ext.maps.booking.partner.v2.CreateBookingRequest") |
| proto.RegisterType((*CreateBookingResponse)(nil), "ext.maps.booking.partner.v2.CreateBookingResponse") |
| proto.RegisterType((*UpdateBookingRequest)(nil), "ext.maps.booking.partner.v2.UpdateBookingRequest") |
| proto.RegisterType((*UpdateBookingResponse)(nil), "ext.maps.booking.partner.v2.UpdateBookingResponse") |
| proto.RegisterType((*GetBookingStatusRequest)(nil), "ext.maps.booking.partner.v2.GetBookingStatusRequest") |
| proto.RegisterType((*GetBookingStatusResponse)(nil), "ext.maps.booking.partner.v2.GetBookingStatusResponse") |
| proto.RegisterType((*ListBookingsRequest)(nil), "ext.maps.booking.partner.v2.ListBookingsRequest") |
| proto.RegisterType((*ListBookingsResponse)(nil), "ext.maps.booking.partner.v2.ListBookingsResponse") |
| proto.RegisterEnum("ext.maps.booking.partner.v2.PaymentOptionType", PaymentOptionType_name, PaymentOptionType_value) |
| proto.RegisterEnum("ext.maps.booking.partner.v2.BookingStatus", BookingStatus_name, BookingStatus_value) |
| proto.RegisterEnum("ext.maps.booking.partner.v2.PrepaymentStatus", PrepaymentStatus_name, PrepaymentStatus_value) |
| proto.RegisterEnum("ext.maps.booking.partner.v2.PaymentProcessingParameters_PaymentProcessor", PaymentProcessingParameters_PaymentProcessor_name, PaymentProcessingParameters_PaymentProcessor_value) |
| proto.RegisterEnum("ext.maps.booking.partner.v2.PaymentInformation_PaymentProcessedBy", PaymentInformation_PaymentProcessedBy_name, PaymentInformation_PaymentProcessedBy_value) |
| proto.RegisterEnum("ext.maps.booking.partner.v2.BookingFailure_Cause", BookingFailure_Cause_name, BookingFailure_Cause_value) |
| proto.RegisterEnum("ext.maps.booking.partner.v2.BookingFailure_CreditCardType", BookingFailure_CreditCardType_name, BookingFailure_CreditCardType_value) |
| proto.RegisterEnum("ext.maps.booking.partner.v2.CheckAvailabilityResponse_DurationRequirement", CheckAvailabilityResponse_DurationRequirement_name, CheckAvailabilityResponse_DurationRequirement_value) |
| } |
| |
| // Reference imports to suppress errors if they are not otherwise used. |
| var _ context.Context |
| var _ grpc.ClientConn |
| |
| // This is a compile-time assertion to ensure that this generated file |
| // is compatible with the grpc package it is being compiled against. |
| const _ = grpc.SupportPackageIsVersion4 |
| |
| // Client API for BookingService service |
| |
| type BookingServiceClient interface { |
| // Gets availability information for an appointment slot |
| CheckAvailability(ctx context.Context, in *CheckAvailabilityRequest, opts ...grpc.CallOption) (*CheckAvailabilityResponse, error) |
| // Creates a new lease |
| CreateLease(ctx context.Context, in *CreateLeaseRequest, opts ...grpc.CallOption) (*CreateLeaseResponse, error) |
| // Creates a booking |
| CreateBooking(ctx context.Context, in *CreateBookingRequest, opts ...grpc.CallOption) (*CreateBookingResponse, error) |
| // Updates an existing booking |
| UpdateBooking(ctx context.Context, in *UpdateBookingRequest, opts ...grpc.CallOption) (*UpdateBookingResponse, error) |
| // Gets status for an existing booking |
| GetBookingStatus(ctx context.Context, in *GetBookingStatusRequest, opts ...grpc.CallOption) (*GetBookingStatusResponse, error) |
| // Lists all bookings for a user |
| ListBookings(ctx context.Context, in *ListBookingsRequest, opts ...grpc.CallOption) (*ListBookingsResponse, error) |
| } |
| |
| type bookingServiceClient struct { |
| cc *grpc.ClientConn |
| } |
| |
| func NewBookingServiceClient(cc *grpc.ClientConn) BookingServiceClient { |
| return &bookingServiceClient{cc} |
| } |
| |
| func (c *bookingServiceClient) CheckAvailability(ctx context.Context, in *CheckAvailabilityRequest, opts ...grpc.CallOption) (*CheckAvailabilityResponse, error) { |
| out := new(CheckAvailabilityResponse) |
| err := grpc.Invoke(ctx, "/ext.maps.booking.partner.v2.BookingService/CheckAvailability", in, out, c.cc, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *bookingServiceClient) CreateLease(ctx context.Context, in *CreateLeaseRequest, opts ...grpc.CallOption) (*CreateLeaseResponse, error) { |
| out := new(CreateLeaseResponse) |
| err := grpc.Invoke(ctx, "/ext.maps.booking.partner.v2.BookingService/CreateLease", in, out, c.cc, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *bookingServiceClient) CreateBooking(ctx context.Context, in *CreateBookingRequest, opts ...grpc.CallOption) (*CreateBookingResponse, error) { |
| out := new(CreateBookingResponse) |
| err := grpc.Invoke(ctx, "/ext.maps.booking.partner.v2.BookingService/CreateBooking", in, out, c.cc, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *bookingServiceClient) UpdateBooking(ctx context.Context, in *UpdateBookingRequest, opts ...grpc.CallOption) (*UpdateBookingResponse, error) { |
| out := new(UpdateBookingResponse) |
| err := grpc.Invoke(ctx, "/ext.maps.booking.partner.v2.BookingService/UpdateBooking", in, out, c.cc, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *bookingServiceClient) GetBookingStatus(ctx context.Context, in *GetBookingStatusRequest, opts ...grpc.CallOption) (*GetBookingStatusResponse, error) { |
| out := new(GetBookingStatusResponse) |
| err := grpc.Invoke(ctx, "/ext.maps.booking.partner.v2.BookingService/GetBookingStatus", in, out, c.cc, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| func (c *bookingServiceClient) ListBookings(ctx context.Context, in *ListBookingsRequest, opts ...grpc.CallOption) (*ListBookingsResponse, error) { |
| out := new(ListBookingsResponse) |
| err := grpc.Invoke(ctx, "/ext.maps.booking.partner.v2.BookingService/ListBookings", in, out, c.cc, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| // Server API for BookingService service |
| |
| type BookingServiceServer interface { |
| // Gets availability information for an appointment slot |
| CheckAvailability(context.Context, *CheckAvailabilityRequest) (*CheckAvailabilityResponse, error) |
| // Creates a new lease |
| CreateLease(context.Context, *CreateLeaseRequest) (*CreateLeaseResponse, error) |
| // Creates a booking |
| CreateBooking(context.Context, *CreateBookingRequest) (*CreateBookingResponse, error) |
| // Updates an existing booking |
| UpdateBooking(context.Context, *UpdateBookingRequest) (*UpdateBookingResponse, error) |
| // Gets status for an existing booking |
| GetBookingStatus(context.Context, *GetBookingStatusRequest) (*GetBookingStatusResponse, error) |
| // Lists all bookings for a user |
| ListBookings(context.Context, *ListBookingsRequest) (*ListBookingsResponse, error) |
| } |
| |
| func RegisterBookingServiceServer(s *grpc.Server, srv BookingServiceServer) { |
| s.RegisterService(&_BookingService_serviceDesc, srv) |
| } |
| |
| func _BookingService_CheckAvailability_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(CheckAvailabilityRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(BookingServiceServer).CheckAvailability(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/ext.maps.booking.partner.v2.BookingService/CheckAvailability", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(BookingServiceServer).CheckAvailability(ctx, req.(*CheckAvailabilityRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _BookingService_CreateLease_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(CreateLeaseRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(BookingServiceServer).CreateLease(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/ext.maps.booking.partner.v2.BookingService/CreateLease", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(BookingServiceServer).CreateLease(ctx, req.(*CreateLeaseRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _BookingService_CreateBooking_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(CreateBookingRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(BookingServiceServer).CreateBooking(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/ext.maps.booking.partner.v2.BookingService/CreateBooking", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(BookingServiceServer).CreateBooking(ctx, req.(*CreateBookingRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _BookingService_UpdateBooking_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(UpdateBookingRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(BookingServiceServer).UpdateBooking(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/ext.maps.booking.partner.v2.BookingService/UpdateBooking", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(BookingServiceServer).UpdateBooking(ctx, req.(*UpdateBookingRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _BookingService_GetBookingStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(GetBookingStatusRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(BookingServiceServer).GetBookingStatus(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/ext.maps.booking.partner.v2.BookingService/GetBookingStatus", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(BookingServiceServer).GetBookingStatus(ctx, req.(*GetBookingStatusRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| func _BookingService_ListBookings_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(ListBookingsRequest) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(BookingServiceServer).ListBookings(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/ext.maps.booking.partner.v2.BookingService/ListBookings", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(BookingServiceServer).ListBookings(ctx, req.(*ListBookingsRequest)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| var _BookingService_serviceDesc = grpc.ServiceDesc{ |
| ServiceName: "ext.maps.booking.partner.v2.BookingService", |
| HandlerType: (*BookingServiceServer)(nil), |
| Methods: []grpc.MethodDesc{ |
| { |
| MethodName: "CheckAvailability", |
| Handler: _BookingService_CheckAvailability_Handler, |
| }, |
| { |
| MethodName: "CreateLease", |
| Handler: _BookingService_CreateLease_Handler, |
| }, |
| { |
| MethodName: "CreateBooking", |
| Handler: _BookingService_CreateBooking_Handler, |
| }, |
| { |
| MethodName: "UpdateBooking", |
| Handler: _BookingService_UpdateBooking_Handler, |
| }, |
| { |
| MethodName: "GetBookingStatus", |
| Handler: _BookingService_GetBookingStatus_Handler, |
| }, |
| { |
| MethodName: "ListBookings", |
| Handler: _BookingService_ListBookings_Handler, |
| }, |
| }, |
| Streams: []grpc.StreamDesc{}, |
| Metadata: "booking_service.proto", |
| } |
| |
| func init() { proto.RegisterFile("booking_service.proto", fileDescriptor0) } |
| |
| var fileDescriptor0 = []byte{ |
| // 2368 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe4, 0x19, 0x4b, 0x6f, 0x1b, 0xc7, |
| 0xd9, 0xa4, 0x48, 0x49, 0xfc, 0x24, 0xd1, 0xab, 0x91, 0x1c, 0xd3, 0x52, 0x1c, 0xcb, 0x9b, 0xb4, |
| 0x4d, 0xed, 0x94, 0x8e, 0x95, 0xb8, 0x70, 0x5b, 0xa0, 0xc8, 0x92, 0x3b, 0x96, 0xd7, 0x25, 0x97, |
| 0xf4, 0xec, 0xd2, 0x8e, 0x73, 0xc8, 0x76, 0xc5, 0x1d, 0xca, 0x5b, 0x93, 0xdc, 0xcd, 0xee, 0x52, |
| 0x90, 0x82, 0xf6, 0x50, 0xa0, 0x40, 0x2f, 0xed, 0x29, 0x87, 0x9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