staypb

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: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StayService_ListStays_FullMethodName  = "/staypb.StayService/ListStays"
	StayService_CreateStay_FullMethodName = "/staypb.StayService/CreateStay"
	StayService_UpdateStay_FullMethodName = "/staypb.StayService/UpdateStay"
)

Variables

View Source
var File_staypb_stay_proto protoreflect.FileDescriptor
View Source
var StayService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "staypb.StayService",
	HandlerType: (*StayServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListStays",
			Handler:    _StayService_ListStays_Handler,
		},
		{
			MethodName: "CreateStay",
			Handler:    _StayService_CreateStay_Handler,
		},
		{
			MethodName: "UpdateStay",
			Handler:    _StayService_UpdateStay_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "staypb/stay.proto",
}

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

Functions

func RegisterStayServiceServer

func RegisterStayServiceServer(s grpc.ServiceRegistrar, srv StayServiceServer)

Types

type CreateStayRequest

type CreateStayRequest struct {
	RoomId        string                 `protobuf:"bytes,1,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"`
	ReservationId string                 `protobuf:"bytes,2,opt,name=reservation_id,json=reservationId,proto3" json:"reservation_id,omitempty"`
	CheckIn       *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=check_in,json=checkIn,proto3" json:"check_in,omitempty"`
	Note          string                 `protobuf:"bytes,4,opt,name=note,proto3" json:"note,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateStayRequest) Descriptor deprecated

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

Deprecated: Use CreateStayRequest.ProtoReflect.Descriptor instead.

func (*CreateStayRequest) GetCheckIn

func (x *CreateStayRequest) GetCheckIn() *timestamppb.Timestamp

func (*CreateStayRequest) GetNote

func (x *CreateStayRequest) GetNote() string

func (*CreateStayRequest) GetReservationId

func (x *CreateStayRequest) GetReservationId() string

func (*CreateStayRequest) GetRoomId

func (x *CreateStayRequest) GetRoomId() string

func (*CreateStayRequest) ProtoMessage

func (*CreateStayRequest) ProtoMessage()

func (*CreateStayRequest) ProtoReflect

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

func (*CreateStayRequest) Reset

func (x *CreateStayRequest) Reset()

func (*CreateStayRequest) String

func (x *CreateStayRequest) String() string

type CreateStayResponse

type CreateStayResponse struct {
	Stay *Stay `protobuf:"bytes,1,opt,name=stay,proto3" json:"stay,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateStayResponse) Descriptor deprecated

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

Deprecated: Use CreateStayResponse.ProtoReflect.Descriptor instead.

func (*CreateStayResponse) GetStay

func (x *CreateStayResponse) GetStay() *Stay

func (*CreateStayResponse) ProtoMessage

func (*CreateStayResponse) ProtoMessage()

func (*CreateStayResponse) ProtoReflect

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

func (*CreateStayResponse) Reset

func (x *CreateStayResponse) Reset()

func (*CreateStayResponse) String

func (x *CreateStayResponse) String() string

type ListStaysRequest

type ListStaysRequest struct {
	RoomId        string `protobuf:"bytes,1,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"`
	ReservationId string `protobuf:"bytes,2,opt,name=reservation_id,json=reservationId,proto3" json:"reservation_id,omitempty"`
	Limit         int64  `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
	Offset        int64  `protobuf:"varint,4,opt,name=offset,proto3" json:"offset,omitempty"`
	// contains filtered or unexported fields
}

func (*ListStaysRequest) Descriptor deprecated

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

Deprecated: Use ListStaysRequest.ProtoReflect.Descriptor instead.

func (*ListStaysRequest) GetLimit

func (x *ListStaysRequest) GetLimit() int64

func (*ListStaysRequest) GetOffset

func (x *ListStaysRequest) GetOffset() int64

func (*ListStaysRequest) GetReservationId

func (x *ListStaysRequest) GetReservationId() string

func (*ListStaysRequest) GetRoomId

func (x *ListStaysRequest) GetRoomId() string

func (*ListStaysRequest) ProtoMessage

func (*ListStaysRequest) ProtoMessage()

func (*ListStaysRequest) ProtoReflect

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

func (*ListStaysRequest) Reset

func (x *ListStaysRequest) Reset()

func (*ListStaysRequest) String

func (x *ListStaysRequest) String() string

type ListStaysResponse

type ListStaysResponse struct {
	Stays []*Stay `protobuf:"bytes,1,rep,name=stays,proto3" json:"stays,omitempty"`
	Total int64   `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"`
	// contains filtered or unexported fields
}

func (*ListStaysResponse) Descriptor deprecated

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

Deprecated: Use ListStaysResponse.ProtoReflect.Descriptor instead.

func (*ListStaysResponse) GetStays

func (x *ListStaysResponse) GetStays() []*Stay

func (*ListStaysResponse) GetTotal

func (x *ListStaysResponse) GetTotal() int64

func (*ListStaysResponse) ProtoMessage

func (*ListStaysResponse) ProtoMessage()

func (*ListStaysResponse) ProtoReflect

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

func (*ListStaysResponse) Reset

func (x *ListStaysResponse) Reset()

func (*ListStaysResponse) String

func (x *ListStaysResponse) String() string

type Stay

type Stay struct {
	Id            string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	RoomId        string                 `protobuf:"bytes,2,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"`
	ReservationId string                 `protobuf:"bytes,3,opt,name=reservation_id,json=reservationId,proto3" json:"reservation_id,omitempty"`
	CheckIn       *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=check_in,json=checkIn,proto3" json:"check_in,omitempty"`
	CheckOut      *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=check_out,json=checkOut,proto3" json:"check_out,omitempty"`
	Note          string                 `protobuf:"bytes,6,opt,name=note,proto3" json:"note,omitempty"`
	CreatedAt     *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt     *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Stay) Descriptor deprecated

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

Deprecated: Use Stay.ProtoReflect.Descriptor instead.

func (*Stay) GetCheckIn

func (x *Stay) GetCheckIn() *timestamppb.Timestamp

func (*Stay) GetCheckOut

func (x *Stay) GetCheckOut() *timestamppb.Timestamp

func (*Stay) GetCreatedAt

func (x *Stay) GetCreatedAt() *timestamppb.Timestamp

func (*Stay) GetId

func (x *Stay) GetId() string

func (*Stay) GetNote

func (x *Stay) GetNote() string

func (*Stay) GetReservationId

func (x *Stay) GetReservationId() string

func (*Stay) GetRoomId

func (x *Stay) GetRoomId() string

func (*Stay) GetUpdatedAt

func (x *Stay) GetUpdatedAt() *timestamppb.Timestamp

func (*Stay) ProtoMessage

func (*Stay) ProtoMessage()

func (*Stay) ProtoReflect

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

func (*Stay) Reset

func (x *Stay) Reset()

func (*Stay) String

func (x *Stay) String() string

type StayServiceClient

type StayServiceClient interface {
	ListStays(ctx context.Context, in *ListStaysRequest, opts ...grpc.CallOption) (*ListStaysResponse, error)
	CreateStay(ctx context.Context, in *CreateStayRequest, opts ...grpc.CallOption) (*CreateStayResponse, error)
	UpdateStay(ctx context.Context, in *UpdateStayRequest, opts ...grpc.CallOption) (*UpdateStayResponse, error)
}

StayServiceClient is the client API for StayService 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 StayServiceServer

type StayServiceServer interface {
	ListStays(context.Context, *ListStaysRequest) (*ListStaysResponse, error)
	CreateStay(context.Context, *CreateStayRequest) (*CreateStayResponse, error)
	UpdateStay(context.Context, *UpdateStayRequest) (*UpdateStayResponse, error)
	// contains filtered or unexported methods
}

StayServiceServer is the server API for StayService service. All implementations must embed UnimplementedStayServiceServer for forward compatibility

type UnimplementedStayServiceServer

type UnimplementedStayServiceServer struct {
}

UnimplementedStayServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedStayServiceServer) CreateStay

func (UnimplementedStayServiceServer) ListStays

func (UnimplementedStayServiceServer) UpdateStay

type UnsafeStayServiceServer

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

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

type UpdateStayRequest

type UpdateStayRequest struct {
	Id       string                 `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	RoomId   string                 `protobuf:"bytes,2,opt,name=room_id,json=roomId,proto3" json:"room_id,omitempty"`
	CheckOut *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=check_out,json=checkOut,proto3" json:"check_out,omitempty"`
	Note     string                 `protobuf:"bytes,4,opt,name=note,proto3" json:"note,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateStayRequest) Descriptor deprecated

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

Deprecated: Use UpdateStayRequest.ProtoReflect.Descriptor instead.

func (*UpdateStayRequest) GetCheckOut

func (x *UpdateStayRequest) GetCheckOut() *timestamppb.Timestamp

func (*UpdateStayRequest) GetId

func (x *UpdateStayRequest) GetId() string

func (*UpdateStayRequest) GetNote

func (x *UpdateStayRequest) GetNote() string

func (*UpdateStayRequest) GetRoomId

func (x *UpdateStayRequest) GetRoomId() string

func (*UpdateStayRequest) ProtoMessage

func (*UpdateStayRequest) ProtoMessage()

func (*UpdateStayRequest) ProtoReflect

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

func (*UpdateStayRequest) Reset

func (x *UpdateStayRequest) Reset()

func (*UpdateStayRequest) String

func (x *UpdateStayRequest) String() string

type UpdateStayResponse

type UpdateStayResponse struct {
	Stay *Stay `protobuf:"bytes,1,opt,name=stay,proto3" json:"stay,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateStayResponse) Descriptor deprecated

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

Deprecated: Use UpdateStayResponse.ProtoReflect.Descriptor instead.

func (*UpdateStayResponse) GetStay

func (x *UpdateStayResponse) GetStay() *Stay

func (*UpdateStayResponse) ProtoMessage

func (*UpdateStayResponse) ProtoMessage()

func (*UpdateStayResponse) ProtoReflect

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

func (*UpdateStayResponse) Reset

func (x *UpdateStayResponse) Reset()

func (*UpdateStayResponse) String

func (x *UpdateStayResponse) String() string

Jump to

Keyboard shortcuts

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