urlpb

package
v0.0.0-...-0ab58b4 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Url_Stops_name = map[int32]string{
		0: "NONSTOP",
		1: "STOP1",
		2: "STOP2",
	}
	Url_Stops_value = map[string]int32{
		"NONSTOP": 0,
		"STOP1":   1,
		"STOP2":   2,
	}
)

Enum value maps for Url_Stops.

View Source
var (
	Url_LocationType_name = map[int32]string{
		0: "UNSPECIFIED_L",
		1: "AIRPORT",
		2: "CITY",
	}
	Url_LocationType_value = map[string]int32{
		"UNSPECIFIED_L": 0,
		"AIRPORT":       1,
		"CITY":          2,
	}
)

Enum value maps for Url_LocationType.

View Source
var (
	Url_Traveler_name = map[int32]string{
		0: "UNSPECIFIED_T",
		1: "ADULT",
		2: "CHILD",
		3: "INFANT_ON_LAP",
		4: "INFANT_IN_SEAT",
	}
	Url_Traveler_value = map[string]int32{
		"UNSPECIFIED_T":  0,
		"ADULT":          1,
		"CHILD":          2,
		"INFANT_ON_LAP":  3,
		"INFANT_IN_SEAT": 4,
	}
)

Enum value maps for Url_Traveler.

View Source
var (
	Url_Class_name = map[int32]string{
		0: "UNSPECIFIED_CLASS",
		1: "ECONOMY",
		2: "PREMIUM_ECONOMY",
		3: "BUSINESS",
		4: "FIRST",
	}
	Url_Class_value = map[string]int32{
		"UNSPECIFIED_CLASS": 0,
		"ECONOMY":           1,
		"PREMIUM_ECONOMY":   2,
		"BUSINESS":          3,
		"FIRST":             4,
	}
)

Enum value maps for Url_Class.

View Source
var (
	Url_TripType_name = map[int32]string{
		0: "UNSPECIFIED_TRIP",
		1: "ROUND_TRIP",
		2: "ONE_WAY",
	}
	Url_TripType_value = map[string]int32{
		"UNSPECIFIED_TRIP": 0,
		"ROUND_TRIP":       1,
		"ONE_WAY":          2,
	}
)

Enum value maps for Url_TripType.

Functions

This section is empty.

Types

type Url

type Url struct {
	Flight    []*Url_Flight  `protobuf:"bytes,3,rep,name=flight,proto3" json:"flight,omitempty"`
	Travelers []Url_Traveler `protobuf:"varint,8,rep,packed,name=travelers,proto3,enum=urlpb.Url_Traveler" json:"travelers,omitempty"`
	Class     Url_Class      `protobuf:"varint,9,opt,name=class,proto3,enum=urlpb.Url_Class" json:"class,omitempty"`
	TripType  Url_TripType   `protobuf:"varint,19,opt,name=tripType,proto3,enum=urlpb.Url_TripType" json:"tripType,omitempty"`
	// contains filtered or unexported fields
}

func (*Url) Descriptor deprecated

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

Deprecated: Use Url.ProtoReflect.Descriptor instead.

func (*Url) GetClass

func (x *Url) GetClass() Url_Class

func (*Url) GetFlight

func (x *Url) GetFlight() []*Url_Flight

func (*Url) GetTravelers

func (x *Url) GetTravelers() []Url_Traveler

func (*Url) GetTripType

func (x *Url) GetTripType() Url_TripType

func (*Url) ProtoMessage

func (*Url) ProtoMessage()

func (*Url) ProtoReflect

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

func (*Url) Reset

func (x *Url) Reset()

func (*Url) String

func (x *Url) String() string

type Url_Class

type Url_Class int32
const (
	Url_UNSPECIFIED_CLASS Url_Class = 0
	Url_ECONOMY           Url_Class = 1
	Url_PREMIUM_ECONOMY   Url_Class = 2
	Url_BUSINESS          Url_Class = 3
	Url_FIRST             Url_Class = 4
)

func (Url_Class) Descriptor

func (Url_Class) Descriptor() protoreflect.EnumDescriptor

func (Url_Class) Enum

func (x Url_Class) Enum() *Url_Class

func (Url_Class) EnumDescriptor deprecated

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

Deprecated: Use Url_Class.Descriptor instead.

func (Url_Class) Number

func (x Url_Class) Number() protoreflect.EnumNumber

func (Url_Class) String

func (x Url_Class) String() string

func (Url_Class) Type

type Url_Flight

type Url_Flight struct {
	Date         string          `protobuf:"bytes,2,opt,name=date,proto3" json:"date,omitempty"`
	Stops        *Url_Stops      `protobuf:"varint,5,opt,name=stops,proto3,enum=urlpb.Url_Stops,oneof" json:"stops,omitempty"`
	SrcLocations []*Url_Location `protobuf:"bytes,13,rep,name=srcLocations,proto3" json:"srcLocations,omitempty"`
	DstLocations []*Url_Location `protobuf:"bytes,14,rep,name=dstLocations,proto3" json:"dstLocations,omitempty"`
	// contains filtered or unexported fields
}

func (*Url_Flight) Descriptor deprecated

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

Deprecated: Use Url_Flight.ProtoReflect.Descriptor instead.

func (*Url_Flight) GetDate

func (x *Url_Flight) GetDate() string

func (*Url_Flight) GetDstLocations

func (x *Url_Flight) GetDstLocations() []*Url_Location

func (*Url_Flight) GetSrcLocations

func (x *Url_Flight) GetSrcLocations() []*Url_Location

func (*Url_Flight) GetStops

func (x *Url_Flight) GetStops() Url_Stops

func (*Url_Flight) ProtoMessage

func (*Url_Flight) ProtoMessage()

func (*Url_Flight) ProtoReflect

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

func (*Url_Flight) Reset

func (x *Url_Flight) Reset()

func (*Url_Flight) String

func (x *Url_Flight) String() string

type Url_Location

type Url_Location struct {
	Type Url_LocationType `protobuf:"varint,1,opt,name=type,proto3,enum=urlpb.Url_LocationType" json:"type,omitempty"`
	Name string           `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*Url_Location) Descriptor deprecated

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

Deprecated: Use Url_Location.ProtoReflect.Descriptor instead.

func (*Url_Location) GetName

func (x *Url_Location) GetName() string

func (*Url_Location) GetType

func (x *Url_Location) GetType() Url_LocationType

func (*Url_Location) ProtoMessage

func (*Url_Location) ProtoMessage()

func (*Url_Location) ProtoReflect

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

func (*Url_Location) Reset

func (x *Url_Location) Reset()

func (*Url_Location) String

func (x *Url_Location) String() string

type Url_LocationType

type Url_LocationType int32
const (
	Url_UNSPECIFIED_L Url_LocationType = 0
	Url_AIRPORT       Url_LocationType = 1
	Url_CITY          Url_LocationType = 2
)

func (Url_LocationType) Descriptor

func (Url_LocationType) Enum

func (Url_LocationType) EnumDescriptor deprecated

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

Deprecated: Use Url_LocationType.Descriptor instead.

func (Url_LocationType) Number

func (Url_LocationType) String

func (x Url_LocationType) String() string

func (Url_LocationType) Type

type Url_Stops

type Url_Stops int32
const (
	Url_NONSTOP Url_Stops = 0
	Url_STOP1   Url_Stops = 1
	Url_STOP2   Url_Stops = 2
)

func (Url_Stops) Descriptor

func (Url_Stops) Descriptor() protoreflect.EnumDescriptor

func (Url_Stops) Enum

func (x Url_Stops) Enum() *Url_Stops

func (Url_Stops) EnumDescriptor deprecated

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

Deprecated: Use Url_Stops.Descriptor instead.

func (Url_Stops) Number

func (x Url_Stops) Number() protoreflect.EnumNumber

func (Url_Stops) String

func (x Url_Stops) String() string

func (Url_Stops) Type

type Url_Traveler

type Url_Traveler int32
const (
	Url_UNSPECIFIED_T  Url_Traveler = 0
	Url_ADULT          Url_Traveler = 1
	Url_CHILD          Url_Traveler = 2
	Url_INFANT_ON_LAP  Url_Traveler = 3
	Url_INFANT_IN_SEAT Url_Traveler = 4
)

func (Url_Traveler) Descriptor

func (Url_Traveler) Enum

func (x Url_Traveler) Enum() *Url_Traveler

func (Url_Traveler) EnumDescriptor deprecated

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

Deprecated: Use Url_Traveler.Descriptor instead.

func (Url_Traveler) Number

func (Url_Traveler) String

func (x Url_Traveler) String() string

func (Url_Traveler) Type

type Url_TripType

type Url_TripType int32
const (
	Url_UNSPECIFIED_TRIP Url_TripType = 0
	Url_ROUND_TRIP       Url_TripType = 1
	Url_ONE_WAY          Url_TripType = 2
)

func (Url_TripType) Descriptor

func (Url_TripType) Enum

func (x Url_TripType) Enum() *Url_TripType

func (Url_TripType) EnumDescriptor deprecated

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

Deprecated: Use Url_TripType.Descriptor instead.

func (Url_TripType) Number

func (Url_TripType) String

func (x Url_TripType) String() string

func (Url_TripType) Type

Jump to

Keyboard shortcuts

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