frontdeskpb

package
v0.0.0-...-1d506e1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FrontDeskService_CheckAvailability_FullMethodName = "/frontdeskpb.FrontDeskService/CheckAvailability"
)

Variables

View Source
var File_frontdeskpb_frontdesk_proto protoreflect.FileDescriptor
View Source
var FrontDeskService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "frontdeskpb.FrontDeskService",
	HandlerType: (*FrontDeskServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CheckAvailability",
			Handler:    _FrontDeskService_CheckAvailability_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "frontdeskpb/frontdesk.proto",
}

FrontDeskService_ServiceDesc is the grpc.ServiceDesc for FrontDeskService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterFrontDeskServiceServer

func RegisterFrontDeskServiceServer(s grpc.ServiceRegistrar, srv FrontDeskServiceServer)

Types

type CheckAvailabilityRequest

type CheckAvailabilityRequest struct {
	Capacity  int64                  `protobuf:"varint,1,opt,name=capacity,proto3" json:"capacity,omitempty"`
	StartDate *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"`
	EndDate   *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckAvailabilityRequest) Descriptor deprecated

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

Deprecated: Use CheckAvailabilityRequest.ProtoReflect.Descriptor instead.

func (*CheckAvailabilityRequest) GetCapacity

func (x *CheckAvailabilityRequest) GetCapacity() int64

func (*CheckAvailabilityRequest) GetEndDate

func (*CheckAvailabilityRequest) GetStartDate

func (x *CheckAvailabilityRequest) GetStartDate() *timestamppb.Timestamp

func (*CheckAvailabilityRequest) ProtoMessage

func (*CheckAvailabilityRequest) ProtoMessage()

func (*CheckAvailabilityRequest) ProtoReflect

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

func (*CheckAvailabilityRequest) Reset

func (x *CheckAvailabilityRequest) Reset()

func (*CheckAvailabilityRequest) String

func (x *CheckAvailabilityRequest) String() string

type CheckAvailabilityResponse

type CheckAvailabilityResponse struct {
	Rooms []*roompb.Room `protobuf:"bytes,1,rep,name=rooms,proto3" json:"rooms,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckAvailabilityResponse) Descriptor deprecated

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

Deprecated: Use CheckAvailabilityResponse.ProtoReflect.Descriptor instead.

func (*CheckAvailabilityResponse) GetRooms

func (x *CheckAvailabilityResponse) GetRooms() []*roompb.Room

func (*CheckAvailabilityResponse) ProtoMessage

func (*CheckAvailabilityResponse) ProtoMessage()

func (*CheckAvailabilityResponse) ProtoReflect

func (*CheckAvailabilityResponse) Reset

func (x *CheckAvailabilityResponse) Reset()

func (*CheckAvailabilityResponse) String

func (x *CheckAvailabilityResponse) String() string

type FrontDeskServiceClient

type FrontDeskServiceClient interface {
	CheckAvailability(ctx context.Context, in *CheckAvailabilityRequest, opts ...grpc.CallOption) (*CheckAvailabilityResponse, error)
}

FrontDeskServiceClient is the client API for FrontDeskService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type FrontDeskServiceServer

type FrontDeskServiceServer interface {
	CheckAvailability(context.Context, *CheckAvailabilityRequest) (*CheckAvailabilityResponse, error)
	// contains filtered or unexported methods
}

FrontDeskServiceServer is the server API for FrontDeskService service. All implementations must embed UnimplementedFrontDeskServiceServer for forward compatibility

type UnimplementedFrontDeskServiceServer

type UnimplementedFrontDeskServiceServer struct {
}

UnimplementedFrontDeskServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedFrontDeskServiceServer) CheckAvailability

type UnsafeFrontDeskServiceServer

type UnsafeFrontDeskServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeFrontDeskServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FrontDeskServiceServer will result in compilation errors.

Jump to

Keyboard shortcuts

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