profile

package
v0.0.0-...-82bdfc5 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package profile is a generated protocol buffer package.

It is generated from these files:

services/profile/proto/profile.proto

It has these top-level messages:

Request
Result
Hotel
Address
Image

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterProfileServer

func RegisterProfileServer(s *grpc.Server, srv ProfileServer)

Types

type Address

type Address struct {
	StreetNumber string  `protobuf:"bytes,1,opt,name=streetNumber" bson:"streetNumber,omitempty"`
	StreetName   string  `protobuf:"bytes,2,opt,name=streetName" bson:"streetName,omitempty"`
	City         string  `protobuf:"bytes,3,opt,name=city" bson:"city,omitempty"`
	State        string  `protobuf:"bytes,4,opt,name=state" bson:"state,omitempty"`
	Country      string  `protobuf:"bytes,5,opt,name=country" bson:"country,omitempty"`
	PostalCode   string  `protobuf:"bytes,6,opt,name=postalCode" bson:"postalCode,omitempty"`
	Lat          float32 `protobuf:"fixed32,7,opt,name=lat" bson:"lat,omitempty"`
	Lon          float32 `protobuf:"fixed32,8,opt,name=lon" bson:"lon,omitempty"`
}

func (*Address) Descriptor

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

func (*Address) GetCity

func (m *Address) GetCity() string

func (*Address) GetCountry

func (m *Address) GetCountry() string

func (*Address) GetLat

func (m *Address) GetLat() float32

func (*Address) GetLon

func (m *Address) GetLon() float32

func (*Address) GetPostalCode

func (m *Address) GetPostalCode() string

func (*Address) GetState

func (m *Address) GetState() string

func (*Address) GetStreetName

func (m *Address) GetStreetName() string

func (*Address) GetStreetNumber

func (m *Address) GetStreetNumber() string

func (*Address) ProtoMessage

func (*Address) ProtoMessage()

func (*Address) Reset

func (m *Address) Reset()

func (*Address) String

func (m *Address) String() string

type Hotel

type Hotel struct {
	Id          string   `protobuf:"bytes,1,opt,name=id" bson:"id,omitempty"`
	Name        string   `protobuf:"bytes,2,opt,name=name" bson:"name,omitempty"`
	PhoneNumber string   `protobuf:"bytes,3,opt,name=phoneNumber" bson:"phoneNumber,omitempty"`
	Description string   `protobuf:"bytes,4,opt,name=description" bson:"description,omitempty"`
	Address     *Address `protobuf:"bytes,5,opt,name=address" bson:"address,omitempty"`
	Images      []*Image `protobuf:"bytes,6,rep,name=images" bson:"images,omitempty"`
}

func (*Hotel) Descriptor

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

func (*Hotel) GetAddress

func (m *Hotel) GetAddress() *Address

func (*Hotel) GetDescription

func (m *Hotel) GetDescription() string

func (*Hotel) GetId

func (m *Hotel) GetId() string

func (*Hotel) GetImages

func (m *Hotel) GetImages() []*Image

func (*Hotel) GetName

func (m *Hotel) GetName() string

func (*Hotel) GetPhoneNumber

func (m *Hotel) GetPhoneNumber() string

func (*Hotel) ProtoMessage

func (*Hotel) ProtoMessage()

func (*Hotel) Reset

func (m *Hotel) Reset()

func (*Hotel) String

func (m *Hotel) String() string

type Image

type Image struct {
	Url     string `protobuf:"bytes,1,opt,name=url" json:"url,omitempty"`
	Default bool   `protobuf:"varint,2,opt,name=default" json:"default,omitempty"`
}

func (*Image) Descriptor

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

func (*Image) GetDefault

func (m *Image) GetDefault() bool

func (*Image) GetUrl

func (m *Image) GetUrl() string

func (*Image) ProtoMessage

func (*Image) ProtoMessage()

func (*Image) Reset

func (m *Image) Reset()

func (*Image) String

func (m *Image) String() string

type ProfileClient

type ProfileClient interface {
	GetProfiles(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Result, error)
}

func NewProfileClient

func NewProfileClient(cc *grpc.ClientConn) ProfileClient

type ProfileServer

type ProfileServer interface {
	GetProfiles(context.Context, *Request) (*Result, error)
}

type Request

type Request struct {
	HotelIds []string `protobuf:"bytes,1,rep,name=hotelIds" json:"hotelIds,omitempty"`
	Locale   string   `protobuf:"bytes,2,opt,name=locale" json:"locale,omitempty"`
}

func (*Request) Descriptor

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

func (*Request) GetHotelIds

func (m *Request) GetHotelIds() []string

func (*Request) GetLocale

func (m *Request) GetLocale() string

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) Reset

func (m *Request) Reset()

func (*Request) String

func (m *Request) String() string

type Result

type Result struct {
	Hotels []*Hotel `protobuf:"bytes,1,rep,name=hotels" json:"hotels,omitempty"`
}

func (*Result) Descriptor

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

func (*Result) GetHotels

func (m *Result) GetHotels() []*Hotel

func (*Result) ProtoMessage

func (*Result) ProtoMessage()

func (*Result) Reset

func (m *Result) Reset()

func (*Result) String

func (m *Result) String() string

Jump to

Keyboard shortcuts

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