bookingpb

package
v0.0.0-...-2e21a08 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	State_name = map[int32]string{
		0:  "unknown",
		1:  "unconfirmed",
		2:  "confirmed",
		3:  "payment_received",
		4:  "payment_pending",
		5:  "planned",
		6:  "canceled",
		7:  "checked_in",
		8:  "checked_out",
		9:  "review_pending",
		10: "reviewed",
	}
	State_value = map[string]int32{
		"unknown":          0,
		"unconfirmed":      1,
		"confirmed":        2,
		"payment_received": 3,
		"payment_pending":  4,
		"planned":          5,
		"canceled":         6,
		"checked_in":       7,
		"checked_out":      8,
		"review_pending":   9,
		"reviewed":         10,
	}
)

Enum value maps for State.

View Source
var File_proto_event_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Event

type Event struct {
	BookingId       string `protobuf:"bytes,1,opt,name=booking_id,json=bookingId,proto3" json:"booking_id,omitempty"`
	UserId          string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	FromEpochMillis int64  `protobuf:"varint,3,opt,name=from_epoch_millis,json=fromEpochMillis,proto3" json:"from_epoch_millis,omitempty"`
	ToEpochMillis   int64  `protobuf:"varint,4,opt,name=to_epoch_millis,json=toEpochMillis,proto3" json:"to_epoch_millis,omitempty"`
	HotelName       string `protobuf:"bytes,5,opt,name=hotel_name,json=hotelName,proto3" json:"hotel_name,omitempty"`
	HotelId         string `protobuf:"bytes,6,opt,name=hotel_id,json=hotelId,proto3" json:"hotel_id,omitempty"`
	FlightId        string `protobuf:"bytes,7,opt,name=flight_id,json=flightId,proto3" json:"flight_id,omitempty"`
	AirlineName     string `protobuf:"bytes,8,opt,name=airline_name,json=airlineName,proto3" json:"airline_name,omitempty"`
	BookingState    State  `protobuf:"varint,9,opt,name=booking_state,json=bookingState,proto3,enum=proto.State" json:"booking_state,omitempty"`
	// contains filtered or unexported fields
}

func (*Event) Descriptor deprecated

func (*Event) Descriptor() ([]byte, []int)

Deprecated: Use Event.ProtoReflect.Descriptor instead.

func (*Event) GetAirlineName

func (x *Event) GetAirlineName() string

func (*Event) GetBookingId

func (x *Event) GetBookingId() string

func (*Event) GetBookingState

func (x *Event) GetBookingState() State

func (*Event) GetFlightId

func (x *Event) GetFlightId() string

func (*Event) GetFromEpochMillis

func (x *Event) GetFromEpochMillis() int64

func (*Event) GetHotelId

func (x *Event) GetHotelId() string

func (*Event) GetHotelName

func (x *Event) GetHotelName() string

func (*Event) GetToEpochMillis

func (x *Event) GetToEpochMillis() int64

func (*Event) GetUserId

func (x *Event) GetUserId() string

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) ProtoReflect

func (x *Event) ProtoReflect() protoreflect.Message

func (*Event) Reset

func (x *Event) Reset()

func (*Event) String

func (x *Event) String() string

type State

type State int32
const (
	State_unknown          State = 0
	State_unconfirmed      State = 1
	State_confirmed        State = 2
	State_payment_received State = 3
	State_payment_pending  State = 4
	State_planned          State = 5
	State_canceled         State = 6
	State_checked_in       State = 7
	State_checked_out      State = 8
	State_review_pending   State = 9
	State_reviewed         State = 10
)

func (State) Descriptor

func (State) Descriptor() protoreflect.EnumDescriptor

func (State) Enum

func (x State) Enum() *State

func (State) EnumDescriptor deprecated

func (State) EnumDescriptor() ([]byte, []int)

Deprecated: Use State.Descriptor instead.

func (State) Number

func (x State) Number() protoreflect.EnumNumber

func (State) String

func (x State) String() string

func (State) Type

func (State) Type() protoreflect.EnumType

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL