proto

package
v0.0.0-...-849d656 Latest Latest
Warning

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

Go to latest
Published: May 27, 2025 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PVZService_GetPVZList_FullMethodName = "/pvz.v1.PVZService/GetPVZList"
)

Variables

View Source
var (
	ReceptionStatus_name = map[int32]string{
		0: "RECEPTION_STATUS_IN_PROGRESS",
		1: "RECEPTION_STATUS_CLOSED",
	}
	ReceptionStatus_value = map[string]int32{
		"RECEPTION_STATUS_IN_PROGRESS": 0,
		"RECEPTION_STATUS_CLOSED":      1,
	}
)

Enum value maps for ReceptionStatus.

View Source
var File_internal_api_grpc_proto_pvz_proto protoreflect.FileDescriptor
View Source
var PVZService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pvz.v1.PVZService",
	HandlerType: (*PVZServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetPVZList",
			Handler:    _PVZService_GetPVZList_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "internal/api/grpc/proto/pvz.proto",
}

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

Functions

func RegisterPVZServiceServer

func RegisterPVZServiceServer(s grpc.ServiceRegistrar, srv PVZServiceServer)

Types

type GetPVZListRequest

type GetPVZListRequest struct {
	// contains filtered or unexported fields
}

func (*GetPVZListRequest) Descriptor deprecated

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

Deprecated: Use GetPVZListRequest.ProtoReflect.Descriptor instead.

func (*GetPVZListRequest) ProtoMessage

func (*GetPVZListRequest) ProtoMessage()

func (*GetPVZListRequest) ProtoReflect

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

func (*GetPVZListRequest) Reset

func (x *GetPVZListRequest) Reset()

func (*GetPVZListRequest) String

func (x *GetPVZListRequest) String() string

type GetPVZListResponse

type GetPVZListResponse struct {
	Pvzs []*PVZ `protobuf:"bytes,1,rep,name=pvzs,proto3" json:"pvzs,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPVZListResponse) Descriptor deprecated

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

Deprecated: Use GetPVZListResponse.ProtoReflect.Descriptor instead.

func (*GetPVZListResponse) GetPvzs

func (x *GetPVZListResponse) GetPvzs() []*PVZ

func (*GetPVZListResponse) ProtoMessage

func (*GetPVZListResponse) ProtoMessage()

func (*GetPVZListResponse) ProtoReflect

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

func (*GetPVZListResponse) Reset

func (x *GetPVZListResponse) Reset()

func (*GetPVZListResponse) String

func (x *GetPVZListResponse) String() string

type PVZ

type PVZ struct {
	Id               string               `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	RegistrationDate *timestamp.Timestamp `protobuf:"bytes,2,opt,name=registration_date,json=registrationDate,proto3" json:"registration_date,omitempty"`
	City             string               `protobuf:"bytes,3,opt,name=city,proto3" json:"city,omitempty"`
	// contains filtered or unexported fields
}

func (*PVZ) Descriptor deprecated

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

Deprecated: Use PVZ.ProtoReflect.Descriptor instead.

func (*PVZ) GetCity

func (x *PVZ) GetCity() string

func (*PVZ) GetId

func (x *PVZ) GetId() string

func (*PVZ) GetRegistrationDate

func (x *PVZ) GetRegistrationDate() *timestamp.Timestamp

func (*PVZ) ProtoMessage

func (*PVZ) ProtoMessage()

func (*PVZ) ProtoReflect

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

func (*PVZ) Reset

func (x *PVZ) Reset()

func (*PVZ) String

func (x *PVZ) String() string

type PVZServiceClient

type PVZServiceClient interface {
	GetPVZList(ctx context.Context, in *GetPVZListRequest, opts ...grpc.CallOption) (*GetPVZListResponse, error)
}

PVZServiceClient is the client API for PVZService 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.

func NewPVZServiceClient

func NewPVZServiceClient(cc grpc.ClientConnInterface) PVZServiceClient

type PVZServiceServer

type PVZServiceServer interface {
	GetPVZList(context.Context, *GetPVZListRequest) (*GetPVZListResponse, error)
	// contains filtered or unexported methods
}

PVZServiceServer is the server API for PVZService service. All implementations must embed UnimplementedPVZServiceServer for forward compatibility.

type ReceptionStatus

type ReceptionStatus int32
const (
	ReceptionStatus_RECEPTION_STATUS_IN_PROGRESS ReceptionStatus = 0
	ReceptionStatus_RECEPTION_STATUS_CLOSED      ReceptionStatus = 1
)

func (ReceptionStatus) Descriptor

func (ReceptionStatus) Enum

func (x ReceptionStatus) Enum() *ReceptionStatus

func (ReceptionStatus) EnumDescriptor deprecated

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

Deprecated: Use ReceptionStatus.Descriptor instead.

func (ReceptionStatus) Number

func (ReceptionStatus) String

func (x ReceptionStatus) String() string

func (ReceptionStatus) Type

type UnimplementedPVZServiceServer

type UnimplementedPVZServiceServer struct{}

UnimplementedPVZServiceServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedPVZServiceServer) GetPVZList

type UnsafePVZServiceServer

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

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

Jump to

Keyboard shortcuts

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