Documentation ¶
Index ¶
- Variables
- func ErrorUnknownError(format string, args ...interface{}) *errors.Error
- func IsUnknownError(err error) bool
- func RegisterCatalogServer(s grpc.ServiceRegistrar, srv CatalogServer)
- type CatalogClient
- type CatalogServer
- type CatalogServiceErrorReason
- func (CatalogServiceErrorReason) Descriptor() protoreflect.EnumDescriptor
- func (x CatalogServiceErrorReason) Enum() *CatalogServiceErrorReason
- func (CatalogServiceErrorReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x CatalogServiceErrorReason) Number() protoreflect.EnumNumber
- func (x CatalogServiceErrorReason) String() string
- func (CatalogServiceErrorReason) Type() protoreflect.EnumType
- type CreateBeerReply
- func (*CreateBeerReply) Descriptor() ([]byte, []int)deprecated
- func (x *CreateBeerReply) GetCount() int64
- func (x *CreateBeerReply) GetDescription() string
- func (x *CreateBeerReply) GetId() int64
- func (x *CreateBeerReply) GetImage() []*CreateBeerReply_Image
- func (x *CreateBeerReply) GetName() string
- func (*CreateBeerReply) ProtoMessage()
- func (x *CreateBeerReply) ProtoReflect() protoreflect.Message
- func (x *CreateBeerReply) Reset()
- func (x *CreateBeerReply) String() string
- type CreateBeerReply_Image
- func (*CreateBeerReply_Image) Descriptor() ([]byte, []int)deprecated
- func (x *CreateBeerReply_Image) GetUrl() string
- func (*CreateBeerReply_Image) ProtoMessage()
- func (x *CreateBeerReply_Image) ProtoReflect() protoreflect.Message
- func (x *CreateBeerReply_Image) Reset()
- func (x *CreateBeerReply_Image) String() string
- type CreateBeerReq
- func (*CreateBeerReq) Descriptor() ([]byte, []int)deprecated
- func (x *CreateBeerReq) GetCount() int64
- func (x *CreateBeerReq) GetDescription() string
- func (x *CreateBeerReq) GetImage() []*CreateBeerReq_Image
- func (x *CreateBeerReq) GetName() string
- func (*CreateBeerReq) ProtoMessage()
- func (x *CreateBeerReq) ProtoReflect() protoreflect.Message
- func (x *CreateBeerReq) Reset()
- func (x *CreateBeerReq) String() string
- type CreateBeerReq_Image
- func (*CreateBeerReq_Image) Descriptor() ([]byte, []int)deprecated
- func (x *CreateBeerReq_Image) GetUrl() string
- func (*CreateBeerReq_Image) ProtoMessage()
- func (x *CreateBeerReq_Image) ProtoReflect() protoreflect.Message
- func (x *CreateBeerReq_Image) Reset()
- func (x *CreateBeerReq_Image) String() string
- type DeleteBeerReply
- type DeleteBeerReq
- type GetBeerReply
- func (*GetBeerReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetBeerReply) GetCount() int64
- func (x *GetBeerReply) GetDescription() string
- func (x *GetBeerReply) GetId() int64
- func (x *GetBeerReply) GetImage() []*GetBeerReply_Image
- func (x *GetBeerReply) GetName() string
- func (*GetBeerReply) ProtoMessage()
- func (x *GetBeerReply) ProtoReflect() protoreflect.Message
- func (x *GetBeerReply) Reset()
- func (x *GetBeerReply) String() string
- type GetBeerReply_Image
- type GetBeerReq
- type ListBeerNextTokenReq
- func (*ListBeerNextTokenReq) Descriptor() ([]byte, []int)deprecated
- func (x *ListBeerNextTokenReq) GetPageSize() int32
- func (x *ListBeerNextTokenReq) GetPageToken() string
- func (*ListBeerNextTokenReq) ProtoMessage()
- func (x *ListBeerNextTokenReq) ProtoReflect() protoreflect.Message
- func (x *ListBeerNextTokenReq) Reset()
- func (x *ListBeerNextTokenReq) String() string
- type ListBeerReply
- type ListBeerReplyNextToken
- func (*ListBeerReplyNextToken) Descriptor() ([]byte, []int)deprecated
- func (x *ListBeerReplyNextToken) GetNextPageToken() string
- func (x *ListBeerReplyNextToken) GetResults() []*ListBeerReplyNextToken_Beer
- func (*ListBeerReplyNextToken) ProtoMessage()
- func (x *ListBeerReplyNextToken) ProtoReflect() protoreflect.Message
- func (x *ListBeerReplyNextToken) Reset()
- func (x *ListBeerReplyNextToken) String() string
- type ListBeerReplyNextToken_Beer
- func (*ListBeerReplyNextToken_Beer) Descriptor() ([]byte, []int)deprecated
- func (x *ListBeerReplyNextToken_Beer) GetCount() int64
- func (x *ListBeerReplyNextToken_Beer) GetDescription() string
- func (x *ListBeerReplyNextToken_Beer) GetId() int64
- func (x *ListBeerReplyNextToken_Beer) GetImage() []*ListBeerReplyNextToken_Beer_Image
- func (x *ListBeerReplyNextToken_Beer) GetName() string
- func (*ListBeerReplyNextToken_Beer) ProtoMessage()
- func (x *ListBeerReplyNextToken_Beer) ProtoReflect() protoreflect.Message
- func (x *ListBeerReplyNextToken_Beer) Reset()
- func (x *ListBeerReplyNextToken_Beer) String() string
- type ListBeerReplyNextToken_Beer_Image
- func (*ListBeerReplyNextToken_Beer_Image) Descriptor() ([]byte, []int)deprecated
- func (x *ListBeerReplyNextToken_Beer_Image) GetUrl() string
- func (*ListBeerReplyNextToken_Beer_Image) ProtoMessage()
- func (x *ListBeerReplyNextToken_Beer_Image) ProtoReflect() protoreflect.Message
- func (x *ListBeerReplyNextToken_Beer_Image) Reset()
- func (x *ListBeerReplyNextToken_Beer_Image) String() string
- type ListBeerReply_Beer
- func (*ListBeerReply_Beer) Descriptor() ([]byte, []int)deprecated
- func (x *ListBeerReply_Beer) GetCount() int64
- func (x *ListBeerReply_Beer) GetDescription() string
- func (x *ListBeerReply_Beer) GetId() int64
- func (x *ListBeerReply_Beer) GetImage() []*ListBeerReply_Beer_Image
- func (x *ListBeerReply_Beer) GetName() string
- func (*ListBeerReply_Beer) ProtoMessage()
- func (x *ListBeerReply_Beer) ProtoReflect() protoreflect.Message
- func (x *ListBeerReply_Beer) Reset()
- func (x *ListBeerReply_Beer) String() string
- type ListBeerReply_Beer_Image
- func (*ListBeerReply_Beer_Image) Descriptor() ([]byte, []int)deprecated
- func (x *ListBeerReply_Beer_Image) GetUrl() string
- func (*ListBeerReply_Beer_Image) ProtoMessage()
- func (x *ListBeerReply_Beer_Image) ProtoReflect() protoreflect.Message
- func (x *ListBeerReply_Beer_Image) Reset()
- func (x *ListBeerReply_Beer_Image) String() string
- type ListBeerReq
- func (*ListBeerReq) Descriptor() ([]byte, []int)deprecated
- func (x *ListBeerReq) GetPageNum() int64
- func (x *ListBeerReq) GetPageSize() int64
- func (*ListBeerReq) ProtoMessage()
- func (x *ListBeerReq) ProtoReflect() protoreflect.Message
- func (x *ListBeerReq) Reset()
- func (x *ListBeerReq) String() string
- type UnimplementedCatalogServer
- func (UnimplementedCatalogServer) CreateBeer(context.Context, *CreateBeerReq) (*CreateBeerReply, error)
- func (UnimplementedCatalogServer) DeleteBeer(context.Context, *DeleteBeerReq) (*DeleteBeerReply, error)
- func (UnimplementedCatalogServer) GetBeer(context.Context, *GetBeerReq) (*GetBeerReply, error)
- func (UnimplementedCatalogServer) ListBeer(context.Context, *ListBeerReq) (*ListBeerReply, error)
- func (UnimplementedCatalogServer) ListBeerNextToken(context.Context, *ListBeerNextTokenReq) (*ListBeerReplyNextToken, error)
- func (UnimplementedCatalogServer) UpdateBeer(context.Context, *UpdateBeerReq) (*UpdateBeerReply, error)
- type UnsafeCatalogServer
- type UpdateBeerReply
- func (*UpdateBeerReply) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateBeerReply) GetCount() int64
- func (x *UpdateBeerReply) GetDescription() string
- func (x *UpdateBeerReply) GetId() int64
- func (x *UpdateBeerReply) GetImage() []*UpdateBeerReply_Image
- func (x *UpdateBeerReply) GetName() string
- func (*UpdateBeerReply) ProtoMessage()
- func (x *UpdateBeerReply) ProtoReflect() protoreflect.Message
- func (x *UpdateBeerReply) Reset()
- func (x *UpdateBeerReply) String() string
- type UpdateBeerReply_Image
- func (*UpdateBeerReply_Image) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateBeerReply_Image) GetUrl() string
- func (*UpdateBeerReply_Image) ProtoMessage()
- func (x *UpdateBeerReply_Image) ProtoReflect() protoreflect.Message
- func (x *UpdateBeerReply_Image) Reset()
- func (x *UpdateBeerReply_Image) String() string
- type UpdateBeerReq
- func (*UpdateBeerReq) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateBeerReq) GetCount() int64
- func (x *UpdateBeerReq) GetDescription() string
- func (x *UpdateBeerReq) GetId() int64
- func (x *UpdateBeerReq) GetImage() []*UpdateBeerReq_Image
- func (x *UpdateBeerReq) GetName() string
- func (*UpdateBeerReq) ProtoMessage()
- func (x *UpdateBeerReq) ProtoReflect() protoreflect.Message
- func (x *UpdateBeerReq) Reset()
- func (x *UpdateBeerReq) String() string
- type UpdateBeerReq_Image
- func (*UpdateBeerReq_Image) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateBeerReq_Image) GetUrl() string
- func (*UpdateBeerReq_Image) ProtoMessage()
- func (x *UpdateBeerReq_Image) ProtoReflect() protoreflect.Message
- func (x *UpdateBeerReq_Image) Reset()
- func (x *UpdateBeerReq_Image) String() string
Constants ¶
This section is empty.
Variables ¶
var ( CatalogServiceErrorReason_name = map[int32]string{ 0: "UNKNOWN_ERROR", } CatalogServiceErrorReason_value = map[string]int32{ "UNKNOWN_ERROR": 0, } )
Enum value maps for CatalogServiceErrorReason.
var Catalog_ServiceDesc = grpc.ServiceDesc{ ServiceName: "catalog.service.v1.Catalog", HandlerType: (*CatalogServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListBeer", Handler: _Catalog_ListBeer_Handler, }, { MethodName: "ListBeerNextToken", Handler: _Catalog_ListBeerNextToken_Handler, }, { MethodName: "CreateBeer", Handler: _Catalog_CreateBeer_Handler, }, { MethodName: "GetBeer", Handler: _Catalog_GetBeer_Handler, }, { MethodName: "UpdateBeer", Handler: _Catalog_UpdateBeer_Handler, }, { MethodName: "DeleteBeer", Handler: _Catalog_DeleteBeer_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/catalog/service/v1/catalog.proto", }
Catalog_ServiceDesc is the grpc.ServiceDesc for Catalog service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_api_catalog_service_v1_catalog_proto protoreflect.FileDescriptor
var File_v1_catalog_error_proto protoreflect.FileDescriptor
Functions ¶
func ErrorUnknownError ¶
func IsUnknownError ¶
func RegisterCatalogServer ¶
func RegisterCatalogServer(s grpc.ServiceRegistrar, srv CatalogServer)
Types ¶
type CatalogClient ¶
type CatalogClient interface { ListBeer(ctx context.Context, in *ListBeerReq, opts ...grpc.CallOption) (*ListBeerReply, error) ListBeerNextToken(ctx context.Context, in *ListBeerNextTokenReq, opts ...grpc.CallOption) (*ListBeerReplyNextToken, error) CreateBeer(ctx context.Context, in *CreateBeerReq, opts ...grpc.CallOption) (*CreateBeerReply, error) GetBeer(ctx context.Context, in *GetBeerReq, opts ...grpc.CallOption) (*GetBeerReply, error) UpdateBeer(ctx context.Context, in *UpdateBeerReq, opts ...grpc.CallOption) (*UpdateBeerReply, error) DeleteBeer(ctx context.Context, in *DeleteBeerReq, opts ...grpc.CallOption) (*DeleteBeerReply, error) }
CatalogClient is the client API for Catalog 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 NewCatalogClient ¶
func NewCatalogClient(cc grpc.ClientConnInterface) CatalogClient
type CatalogServer ¶
type CatalogServer interface { ListBeer(context.Context, *ListBeerReq) (*ListBeerReply, error) ListBeerNextToken(context.Context, *ListBeerNextTokenReq) (*ListBeerReplyNextToken, error) CreateBeer(context.Context, *CreateBeerReq) (*CreateBeerReply, error) GetBeer(context.Context, *GetBeerReq) (*GetBeerReply, error) UpdateBeer(context.Context, *UpdateBeerReq) (*UpdateBeerReply, error) DeleteBeer(context.Context, *DeleteBeerReq) (*DeleteBeerReply, error) // contains filtered or unexported methods }
CatalogServer is the server API for Catalog service. All implementations must embed UnimplementedCatalogServer for forward compatibility
type CatalogServiceErrorReason ¶
type CatalogServiceErrorReason int32
const (
CatalogServiceErrorReason_UNKNOWN_ERROR CatalogServiceErrorReason = 0
)
func (CatalogServiceErrorReason) Descriptor ¶
func (CatalogServiceErrorReason) Descriptor() protoreflect.EnumDescriptor
func (CatalogServiceErrorReason) Enum ¶
func (x CatalogServiceErrorReason) Enum() *CatalogServiceErrorReason
func (CatalogServiceErrorReason) EnumDescriptor
deprecated
func (CatalogServiceErrorReason) EnumDescriptor() ([]byte, []int)
Deprecated: Use CatalogServiceErrorReason.Descriptor instead.
func (CatalogServiceErrorReason) Number ¶
func (x CatalogServiceErrorReason) Number() protoreflect.EnumNumber
func (CatalogServiceErrorReason) String ¶
func (x CatalogServiceErrorReason) String() string
func (CatalogServiceErrorReason) Type ¶
func (CatalogServiceErrorReason) Type() protoreflect.EnumType
type CreateBeerReply ¶
type CreateBeerReply struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` Count int64 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"` Image []*CreateBeerReply_Image `protobuf:"bytes,5,rep,name=image,proto3" json:"image,omitempty"` // contains filtered or unexported fields }
func (*CreateBeerReply) Descriptor
deprecated
func (*CreateBeerReply) Descriptor() ([]byte, []int)
Deprecated: Use CreateBeerReply.ProtoReflect.Descriptor instead.
func (*CreateBeerReply) GetCount ¶
func (x *CreateBeerReply) GetCount() int64
func (*CreateBeerReply) GetDescription ¶
func (x *CreateBeerReply) GetDescription() string
func (*CreateBeerReply) GetId ¶
func (x *CreateBeerReply) GetId() int64
func (*CreateBeerReply) GetImage ¶
func (x *CreateBeerReply) GetImage() []*CreateBeerReply_Image
func (*CreateBeerReply) GetName ¶
func (x *CreateBeerReply) GetName() string
func (*CreateBeerReply) ProtoMessage ¶
func (*CreateBeerReply) ProtoMessage()
func (*CreateBeerReply) ProtoReflect ¶
func (x *CreateBeerReply) ProtoReflect() protoreflect.Message
func (*CreateBeerReply) Reset ¶
func (x *CreateBeerReply) Reset()
func (*CreateBeerReply) String ¶
func (x *CreateBeerReply) String() string
type CreateBeerReply_Image ¶
type CreateBeerReply_Image struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` // contains filtered or unexported fields }
func (*CreateBeerReply_Image) Descriptor
deprecated
func (*CreateBeerReply_Image) Descriptor() ([]byte, []int)
Deprecated: Use CreateBeerReply_Image.ProtoReflect.Descriptor instead.
func (*CreateBeerReply_Image) GetUrl ¶
func (x *CreateBeerReply_Image) GetUrl() string
func (*CreateBeerReply_Image) ProtoMessage ¶
func (*CreateBeerReply_Image) ProtoMessage()
func (*CreateBeerReply_Image) ProtoReflect ¶
func (x *CreateBeerReply_Image) ProtoReflect() protoreflect.Message
func (*CreateBeerReply_Image) Reset ¶
func (x *CreateBeerReply_Image) Reset()
func (*CreateBeerReply_Image) String ¶
func (x *CreateBeerReply_Image) String() string
type CreateBeerReq ¶
type CreateBeerReq struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` Count int64 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` Image []*CreateBeerReq_Image `protobuf:"bytes,4,rep,name=image,proto3" json:"image,omitempty"` // contains filtered or unexported fields }
func (*CreateBeerReq) Descriptor
deprecated
func (*CreateBeerReq) Descriptor() ([]byte, []int)
Deprecated: Use CreateBeerReq.ProtoReflect.Descriptor instead.
func (*CreateBeerReq) GetCount ¶
func (x *CreateBeerReq) GetCount() int64
func (*CreateBeerReq) GetDescription ¶
func (x *CreateBeerReq) GetDescription() string
func (*CreateBeerReq) GetImage ¶
func (x *CreateBeerReq) GetImage() []*CreateBeerReq_Image
func (*CreateBeerReq) GetName ¶
func (x *CreateBeerReq) GetName() string
func (*CreateBeerReq) ProtoMessage ¶
func (*CreateBeerReq) ProtoMessage()
func (*CreateBeerReq) ProtoReflect ¶
func (x *CreateBeerReq) ProtoReflect() protoreflect.Message
func (*CreateBeerReq) Reset ¶
func (x *CreateBeerReq) Reset()
func (*CreateBeerReq) String ¶
func (x *CreateBeerReq) String() string
type CreateBeerReq_Image ¶
type CreateBeerReq_Image struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` // contains filtered or unexported fields }
func (*CreateBeerReq_Image) Descriptor
deprecated
func (*CreateBeerReq_Image) Descriptor() ([]byte, []int)
Deprecated: Use CreateBeerReq_Image.ProtoReflect.Descriptor instead.
func (*CreateBeerReq_Image) GetUrl ¶
func (x *CreateBeerReq_Image) GetUrl() string
func (*CreateBeerReq_Image) ProtoMessage ¶
func (*CreateBeerReq_Image) ProtoMessage()
func (*CreateBeerReq_Image) ProtoReflect ¶
func (x *CreateBeerReq_Image) ProtoReflect() protoreflect.Message
func (*CreateBeerReq_Image) Reset ¶
func (x *CreateBeerReq_Image) Reset()
func (*CreateBeerReq_Image) String ¶
func (x *CreateBeerReq_Image) String() string
type DeleteBeerReply ¶
type DeleteBeerReply struct {
// contains filtered or unexported fields
}
func (*DeleteBeerReply) Descriptor
deprecated
func (*DeleteBeerReply) Descriptor() ([]byte, []int)
Deprecated: Use DeleteBeerReply.ProtoReflect.Descriptor instead.
func (*DeleteBeerReply) ProtoMessage ¶
func (*DeleteBeerReply) ProtoMessage()
func (*DeleteBeerReply) ProtoReflect ¶
func (x *DeleteBeerReply) ProtoReflect() protoreflect.Message
func (*DeleteBeerReply) Reset ¶
func (x *DeleteBeerReply) Reset()
func (*DeleteBeerReply) String ¶
func (x *DeleteBeerReply) String() string
type DeleteBeerReq ¶
type DeleteBeerReq struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteBeerReq) Descriptor
deprecated
func (*DeleteBeerReq) Descriptor() ([]byte, []int)
Deprecated: Use DeleteBeerReq.ProtoReflect.Descriptor instead.
func (*DeleteBeerReq) GetId ¶
func (x *DeleteBeerReq) GetId() int64
func (*DeleteBeerReq) ProtoMessage ¶
func (*DeleteBeerReq) ProtoMessage()
func (*DeleteBeerReq) ProtoReflect ¶
func (x *DeleteBeerReq) ProtoReflect() protoreflect.Message
func (*DeleteBeerReq) Reset ¶
func (x *DeleteBeerReq) Reset()
func (*DeleteBeerReq) String ¶
func (x *DeleteBeerReq) String() string
type GetBeerReply ¶
type GetBeerReply struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` Count int64 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"` Image []*GetBeerReply_Image `protobuf:"bytes,5,rep,name=image,proto3" json:"image,omitempty"` // contains filtered or unexported fields }
func (*GetBeerReply) Descriptor
deprecated
func (*GetBeerReply) Descriptor() ([]byte, []int)
Deprecated: Use GetBeerReply.ProtoReflect.Descriptor instead.
func (*GetBeerReply) GetCount ¶
func (x *GetBeerReply) GetCount() int64
func (*GetBeerReply) GetDescription ¶
func (x *GetBeerReply) GetDescription() string
func (*GetBeerReply) GetId ¶
func (x *GetBeerReply) GetId() int64
func (*GetBeerReply) GetImage ¶
func (x *GetBeerReply) GetImage() []*GetBeerReply_Image
func (*GetBeerReply) GetName ¶
func (x *GetBeerReply) GetName() string
func (*GetBeerReply) ProtoMessage ¶
func (*GetBeerReply) ProtoMessage()
func (*GetBeerReply) ProtoReflect ¶
func (x *GetBeerReply) ProtoReflect() protoreflect.Message
func (*GetBeerReply) Reset ¶
func (x *GetBeerReply) Reset()
func (*GetBeerReply) String ¶
func (x *GetBeerReply) String() string
type GetBeerReply_Image ¶
type GetBeerReply_Image struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` // contains filtered or unexported fields }
func (*GetBeerReply_Image) Descriptor
deprecated
func (*GetBeerReply_Image) Descriptor() ([]byte, []int)
Deprecated: Use GetBeerReply_Image.ProtoReflect.Descriptor instead.
func (*GetBeerReply_Image) GetUrl ¶
func (x *GetBeerReply_Image) GetUrl() string
func (*GetBeerReply_Image) ProtoMessage ¶
func (*GetBeerReply_Image) ProtoMessage()
func (*GetBeerReply_Image) ProtoReflect ¶
func (x *GetBeerReply_Image) ProtoReflect() protoreflect.Message
func (*GetBeerReply_Image) Reset ¶
func (x *GetBeerReply_Image) Reset()
func (*GetBeerReply_Image) String ¶
func (x *GetBeerReply_Image) String() string
type GetBeerReq ¶
type GetBeerReq struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetBeerReq) Descriptor
deprecated
func (*GetBeerReq) Descriptor() ([]byte, []int)
Deprecated: Use GetBeerReq.ProtoReflect.Descriptor instead.
func (*GetBeerReq) GetId ¶
func (x *GetBeerReq) GetId() int64
func (*GetBeerReq) ProtoMessage ¶
func (*GetBeerReq) ProtoMessage()
func (*GetBeerReq) ProtoReflect ¶
func (x *GetBeerReq) ProtoReflect() protoreflect.Message
func (*GetBeerReq) Reset ¶
func (x *GetBeerReq) Reset()
func (*GetBeerReq) String ¶
func (x *GetBeerReq) String() string
type ListBeerNextTokenReq ¶
type ListBeerNextTokenReq struct { // The maximum number of books to return. The service may return fewer than // this value. // If unspecified, at most 50 books will be returned. // The maximum value is 1000; values above 1000 will be coerced to 1000. PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // A page token, received from a previous `ListBooks` call. // Provide this to retrieve the subsequent page. // // When paginating, all other parameters provided to `ListBooks` must match // the call that provided the page token. PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // contains filtered or unexported fields }
func (*ListBeerNextTokenReq) Descriptor
deprecated
func (*ListBeerNextTokenReq) Descriptor() ([]byte, []int)
Deprecated: Use ListBeerNextTokenReq.ProtoReflect.Descriptor instead.
func (*ListBeerNextTokenReq) GetPageSize ¶
func (x *ListBeerNextTokenReq) GetPageSize() int32
func (*ListBeerNextTokenReq) GetPageToken ¶
func (x *ListBeerNextTokenReq) GetPageToken() string
func (*ListBeerNextTokenReq) ProtoMessage ¶
func (*ListBeerNextTokenReq) ProtoMessage()
func (*ListBeerNextTokenReq) ProtoReflect ¶
func (x *ListBeerNextTokenReq) ProtoReflect() protoreflect.Message
func (*ListBeerNextTokenReq) Reset ¶
func (x *ListBeerNextTokenReq) Reset()
func (*ListBeerNextTokenReq) String ¶
func (x *ListBeerNextTokenReq) String() string
type ListBeerReply ¶
type ListBeerReply struct { Results []*ListBeerReply_Beer `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` // contains filtered or unexported fields }
func (*ListBeerReply) Descriptor
deprecated
func (*ListBeerReply) Descriptor() ([]byte, []int)
Deprecated: Use ListBeerReply.ProtoReflect.Descriptor instead.
func (*ListBeerReply) GetResults ¶
func (x *ListBeerReply) GetResults() []*ListBeerReply_Beer
func (*ListBeerReply) ProtoMessage ¶
func (*ListBeerReply) ProtoMessage()
func (*ListBeerReply) ProtoReflect ¶
func (x *ListBeerReply) ProtoReflect() protoreflect.Message
func (*ListBeerReply) Reset ¶
func (x *ListBeerReply) Reset()
func (*ListBeerReply) String ¶
func (x *ListBeerReply) String() string
type ListBeerReplyNextToken ¶
type ListBeerReplyNextToken struct { Results []*ListBeerReplyNextToken_Beer `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
func (*ListBeerReplyNextToken) Descriptor
deprecated
func (*ListBeerReplyNextToken) Descriptor() ([]byte, []int)
Deprecated: Use ListBeerReplyNextToken.ProtoReflect.Descriptor instead.
func (*ListBeerReplyNextToken) GetNextPageToken ¶
func (x *ListBeerReplyNextToken) GetNextPageToken() string
func (*ListBeerReplyNextToken) GetResults ¶
func (x *ListBeerReplyNextToken) GetResults() []*ListBeerReplyNextToken_Beer
func (*ListBeerReplyNextToken) ProtoMessage ¶
func (*ListBeerReplyNextToken) ProtoMessage()
func (*ListBeerReplyNextToken) ProtoReflect ¶
func (x *ListBeerReplyNextToken) ProtoReflect() protoreflect.Message
func (*ListBeerReplyNextToken) Reset ¶
func (x *ListBeerReplyNextToken) Reset()
func (*ListBeerReplyNextToken) String ¶
func (x *ListBeerReplyNextToken) String() string
type ListBeerReplyNextToken_Beer ¶
type ListBeerReplyNextToken_Beer struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` Count int64 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"` Image []*ListBeerReplyNextToken_Beer_Image `protobuf:"bytes,5,rep,name=image,proto3" json:"image,omitempty"` // contains filtered or unexported fields }
func (*ListBeerReplyNextToken_Beer) Descriptor
deprecated
func (*ListBeerReplyNextToken_Beer) Descriptor() ([]byte, []int)
Deprecated: Use ListBeerReplyNextToken_Beer.ProtoReflect.Descriptor instead.
func (*ListBeerReplyNextToken_Beer) GetCount ¶
func (x *ListBeerReplyNextToken_Beer) GetCount() int64
func (*ListBeerReplyNextToken_Beer) GetDescription ¶
func (x *ListBeerReplyNextToken_Beer) GetDescription() string
func (*ListBeerReplyNextToken_Beer) GetId ¶
func (x *ListBeerReplyNextToken_Beer) GetId() int64
func (*ListBeerReplyNextToken_Beer) GetImage ¶
func (x *ListBeerReplyNextToken_Beer) GetImage() []*ListBeerReplyNextToken_Beer_Image
func (*ListBeerReplyNextToken_Beer) GetName ¶
func (x *ListBeerReplyNextToken_Beer) GetName() string
func (*ListBeerReplyNextToken_Beer) ProtoMessage ¶
func (*ListBeerReplyNextToken_Beer) ProtoMessage()
func (*ListBeerReplyNextToken_Beer) ProtoReflect ¶
func (x *ListBeerReplyNextToken_Beer) ProtoReflect() protoreflect.Message
func (*ListBeerReplyNextToken_Beer) Reset ¶
func (x *ListBeerReplyNextToken_Beer) Reset()
func (*ListBeerReplyNextToken_Beer) String ¶
func (x *ListBeerReplyNextToken_Beer) String() string
type ListBeerReplyNextToken_Beer_Image ¶
type ListBeerReplyNextToken_Beer_Image struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` // contains filtered or unexported fields }
func (*ListBeerReplyNextToken_Beer_Image) Descriptor
deprecated
func (*ListBeerReplyNextToken_Beer_Image) Descriptor() ([]byte, []int)
Deprecated: Use ListBeerReplyNextToken_Beer_Image.ProtoReflect.Descriptor instead.
func (*ListBeerReplyNextToken_Beer_Image) GetUrl ¶
func (x *ListBeerReplyNextToken_Beer_Image) GetUrl() string
func (*ListBeerReplyNextToken_Beer_Image) ProtoMessage ¶
func (*ListBeerReplyNextToken_Beer_Image) ProtoMessage()
func (*ListBeerReplyNextToken_Beer_Image) ProtoReflect ¶
func (x *ListBeerReplyNextToken_Beer_Image) ProtoReflect() protoreflect.Message
func (*ListBeerReplyNextToken_Beer_Image) Reset ¶
func (x *ListBeerReplyNextToken_Beer_Image) Reset()
func (*ListBeerReplyNextToken_Beer_Image) String ¶
func (x *ListBeerReplyNextToken_Beer_Image) String() string
type ListBeerReply_Beer ¶
type ListBeerReply_Beer struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` Count int64 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"` Image []*ListBeerReply_Beer_Image `protobuf:"bytes,5,rep,name=image,proto3" json:"image,omitempty"` // contains filtered or unexported fields }
func (*ListBeerReply_Beer) Descriptor
deprecated
func (*ListBeerReply_Beer) Descriptor() ([]byte, []int)
Deprecated: Use ListBeerReply_Beer.ProtoReflect.Descriptor instead.
func (*ListBeerReply_Beer) GetCount ¶
func (x *ListBeerReply_Beer) GetCount() int64
func (*ListBeerReply_Beer) GetDescription ¶
func (x *ListBeerReply_Beer) GetDescription() string
func (*ListBeerReply_Beer) GetId ¶
func (x *ListBeerReply_Beer) GetId() int64
func (*ListBeerReply_Beer) GetImage ¶
func (x *ListBeerReply_Beer) GetImage() []*ListBeerReply_Beer_Image
func (*ListBeerReply_Beer) GetName ¶
func (x *ListBeerReply_Beer) GetName() string
func (*ListBeerReply_Beer) ProtoMessage ¶
func (*ListBeerReply_Beer) ProtoMessage()
func (*ListBeerReply_Beer) ProtoReflect ¶
func (x *ListBeerReply_Beer) ProtoReflect() protoreflect.Message
func (*ListBeerReply_Beer) Reset ¶
func (x *ListBeerReply_Beer) Reset()
func (*ListBeerReply_Beer) String ¶
func (x *ListBeerReply_Beer) String() string
type ListBeerReply_Beer_Image ¶
type ListBeerReply_Beer_Image struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` // contains filtered or unexported fields }
func (*ListBeerReply_Beer_Image) Descriptor
deprecated
func (*ListBeerReply_Beer_Image) Descriptor() ([]byte, []int)
Deprecated: Use ListBeerReply_Beer_Image.ProtoReflect.Descriptor instead.
func (*ListBeerReply_Beer_Image) GetUrl ¶
func (x *ListBeerReply_Beer_Image) GetUrl() string
func (*ListBeerReply_Beer_Image) ProtoMessage ¶
func (*ListBeerReply_Beer_Image) ProtoMessage()
func (*ListBeerReply_Beer_Image) ProtoReflect ¶
func (x *ListBeerReply_Beer_Image) ProtoReflect() protoreflect.Message
func (*ListBeerReply_Beer_Image) Reset ¶
func (x *ListBeerReply_Beer_Image) Reset()
func (*ListBeerReply_Beer_Image) String ¶
func (x *ListBeerReply_Beer_Image) String() string
type ListBeerReq ¶
type ListBeerReq struct { PageNum int64 `protobuf:"varint,1,opt,name=page_num,json=pageNum,proto3" json:"page_num,omitempty"` PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // contains filtered or unexported fields }
func (*ListBeerReq) Descriptor
deprecated
func (*ListBeerReq) Descriptor() ([]byte, []int)
Deprecated: Use ListBeerReq.ProtoReflect.Descriptor instead.
func (*ListBeerReq) GetPageNum ¶
func (x *ListBeerReq) GetPageNum() int64
func (*ListBeerReq) GetPageSize ¶
func (x *ListBeerReq) GetPageSize() int64
func (*ListBeerReq) ProtoMessage ¶
func (*ListBeerReq) ProtoMessage()
func (*ListBeerReq) ProtoReflect ¶
func (x *ListBeerReq) ProtoReflect() protoreflect.Message
func (*ListBeerReq) Reset ¶
func (x *ListBeerReq) Reset()
func (*ListBeerReq) String ¶
func (x *ListBeerReq) String() string
type UnimplementedCatalogServer ¶
type UnimplementedCatalogServer struct { }
UnimplementedCatalogServer must be embedded to have forward compatible implementations.
func (UnimplementedCatalogServer) CreateBeer ¶
func (UnimplementedCatalogServer) CreateBeer(context.Context, *CreateBeerReq) (*CreateBeerReply, error)
func (UnimplementedCatalogServer) DeleteBeer ¶
func (UnimplementedCatalogServer) DeleteBeer(context.Context, *DeleteBeerReq) (*DeleteBeerReply, error)
func (UnimplementedCatalogServer) GetBeer ¶
func (UnimplementedCatalogServer) GetBeer(context.Context, *GetBeerReq) (*GetBeerReply, error)
func (UnimplementedCatalogServer) ListBeer ¶
func (UnimplementedCatalogServer) ListBeer(context.Context, *ListBeerReq) (*ListBeerReply, error)
func (UnimplementedCatalogServer) ListBeerNextToken ¶
func (UnimplementedCatalogServer) ListBeerNextToken(context.Context, *ListBeerNextTokenReq) (*ListBeerReplyNextToken, error)
func (UnimplementedCatalogServer) UpdateBeer ¶
func (UnimplementedCatalogServer) UpdateBeer(context.Context, *UpdateBeerReq) (*UpdateBeerReply, error)
type UnsafeCatalogServer ¶
type UnsafeCatalogServer interface {
// contains filtered or unexported methods
}
UnsafeCatalogServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CatalogServer will result in compilation errors.
type UpdateBeerReply ¶
type UpdateBeerReply struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` Count int64 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"` Image []*UpdateBeerReply_Image `protobuf:"bytes,5,rep,name=image,proto3" json:"image,omitempty"` // contains filtered or unexported fields }
func (*UpdateBeerReply) Descriptor
deprecated
func (*UpdateBeerReply) Descriptor() ([]byte, []int)
Deprecated: Use UpdateBeerReply.ProtoReflect.Descriptor instead.
func (*UpdateBeerReply) GetCount ¶
func (x *UpdateBeerReply) GetCount() int64
func (*UpdateBeerReply) GetDescription ¶
func (x *UpdateBeerReply) GetDescription() string
func (*UpdateBeerReply) GetId ¶
func (x *UpdateBeerReply) GetId() int64
func (*UpdateBeerReply) GetImage ¶
func (x *UpdateBeerReply) GetImage() []*UpdateBeerReply_Image
func (*UpdateBeerReply) GetName ¶
func (x *UpdateBeerReply) GetName() string
func (*UpdateBeerReply) ProtoMessage ¶
func (*UpdateBeerReply) ProtoMessage()
func (*UpdateBeerReply) ProtoReflect ¶
func (x *UpdateBeerReply) ProtoReflect() protoreflect.Message
func (*UpdateBeerReply) Reset ¶
func (x *UpdateBeerReply) Reset()
func (*UpdateBeerReply) String ¶
func (x *UpdateBeerReply) String() string
type UpdateBeerReply_Image ¶
type UpdateBeerReply_Image struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` // contains filtered or unexported fields }
func (*UpdateBeerReply_Image) Descriptor
deprecated
func (*UpdateBeerReply_Image) Descriptor() ([]byte, []int)
Deprecated: Use UpdateBeerReply_Image.ProtoReflect.Descriptor instead.
func (*UpdateBeerReply_Image) GetUrl ¶
func (x *UpdateBeerReply_Image) GetUrl() string
func (*UpdateBeerReply_Image) ProtoMessage ¶
func (*UpdateBeerReply_Image) ProtoMessage()
func (*UpdateBeerReply_Image) ProtoReflect ¶
func (x *UpdateBeerReply_Image) ProtoReflect() protoreflect.Message
func (*UpdateBeerReply_Image) Reset ¶
func (x *UpdateBeerReply_Image) Reset()
func (*UpdateBeerReply_Image) String ¶
func (x *UpdateBeerReply_Image) String() string
type UpdateBeerReq ¶
type UpdateBeerReq struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` Count int64 `protobuf:"varint,4,opt,name=count,proto3" json:"count,omitempty"` Image []*UpdateBeerReq_Image `protobuf:"bytes,5,rep,name=image,proto3" json:"image,omitempty"` // contains filtered or unexported fields }
func (*UpdateBeerReq) Descriptor
deprecated
func (*UpdateBeerReq) Descriptor() ([]byte, []int)
Deprecated: Use UpdateBeerReq.ProtoReflect.Descriptor instead.
func (*UpdateBeerReq) GetCount ¶
func (x *UpdateBeerReq) GetCount() int64
func (*UpdateBeerReq) GetDescription ¶
func (x *UpdateBeerReq) GetDescription() string
func (*UpdateBeerReq) GetId ¶
func (x *UpdateBeerReq) GetId() int64
func (*UpdateBeerReq) GetImage ¶
func (x *UpdateBeerReq) GetImage() []*UpdateBeerReq_Image
func (*UpdateBeerReq) GetName ¶
func (x *UpdateBeerReq) GetName() string
func (*UpdateBeerReq) ProtoMessage ¶
func (*UpdateBeerReq) ProtoMessage()
func (*UpdateBeerReq) ProtoReflect ¶
func (x *UpdateBeerReq) ProtoReflect() protoreflect.Message
func (*UpdateBeerReq) Reset ¶
func (x *UpdateBeerReq) Reset()
func (*UpdateBeerReq) String ¶
func (x *UpdateBeerReq) String() string
type UpdateBeerReq_Image ¶
type UpdateBeerReq_Image struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` // contains filtered or unexported fields }
func (*UpdateBeerReq_Image) Descriptor
deprecated
func (*UpdateBeerReq_Image) Descriptor() ([]byte, []int)
Deprecated: Use UpdateBeerReq_Image.ProtoReflect.Descriptor instead.
func (*UpdateBeerReq_Image) GetUrl ¶
func (x *UpdateBeerReq_Image) GetUrl() string
func (*UpdateBeerReq_Image) ProtoMessage ¶
func (*UpdateBeerReq_Image) ProtoMessage()
func (*UpdateBeerReq_Image) ProtoReflect ¶
func (x *UpdateBeerReq_Image) ProtoReflect() protoreflect.Message
func (*UpdateBeerReq_Image) Reset ¶
func (x *UpdateBeerReq_Image) Reset()
func (*UpdateBeerReq_Image) String ¶
func (x *UpdateBeerReq_Image) String() string