Documentation
¶
Overview ¶
Package cakesv1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterCakesServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterCakesServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CakesServiceClient) error
- func RegisterCakesServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterCakesServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server CakesServiceServer) error
- func RegisterCakesServiceServer(s grpc.ServiceRegistrar, srv CakesServiceServer)
- type Cake
- func (*Cake) Descriptor() ([]byte, []int)deprecated
- func (x *Cake) GetCreatedAt() *timestamppb.Timestamp
- func (x *Cake) GetDescription() string
- func (x *Cake) GetId() int32
- func (x *Cake) GetImage() string
- func (x *Cake) GetRating() int32
- func (x *Cake) GetTitle() string
- func (x *Cake) GetUpdatedAt() *timestamppb.Timestamp
- func (*Cake) ProtoMessage()
- func (x *Cake) ProtoReflect() protoreflect.Message
- func (x *Cake) Reset()
- func (x *Cake) String() string
- func (m *Cake) Validate() error
- func (m *Cake) ValidateAll() error
- type CakeMultiError
- type CakeValidationError
- type CakesServiceClient
- type CakesServiceServer
- type CreateCakeRequest
- func (*CreateCakeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateCakeRequest) GetDescription() string
- func (x *CreateCakeRequest) GetImage() string
- func (x *CreateCakeRequest) GetRating() int32
- func (x *CreateCakeRequest) GetTitle() string
- func (*CreateCakeRequest) ProtoMessage()
- func (x *CreateCakeRequest) ProtoReflect() protoreflect.Message
- func (x *CreateCakeRequest) Reset()
- func (x *CreateCakeRequest) String() string
- func (m *CreateCakeRequest) Validate() error
- func (m *CreateCakeRequest) ValidateAll() error
- type CreateCakeRequestMultiError
- type CreateCakeRequestValidationError
- func (e CreateCakeRequestValidationError) Cause() error
- func (e CreateCakeRequestValidationError) Error() string
- func (e CreateCakeRequestValidationError) ErrorName() string
- func (e CreateCakeRequestValidationError) Field() string
- func (e CreateCakeRequestValidationError) Key() bool
- func (e CreateCakeRequestValidationError) Reason() string
- type CreateCakeResponse
- func (*CreateCakeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateCakeResponse) GetData() *Cake
- func (*CreateCakeResponse) ProtoMessage()
- func (x *CreateCakeResponse) ProtoReflect() protoreflect.Message
- func (x *CreateCakeResponse) Reset()
- func (x *CreateCakeResponse) String() string
- func (m *CreateCakeResponse) Validate() error
- func (m *CreateCakeResponse) ValidateAll() error
- type CreateCakeResponseMultiError
- type CreateCakeResponseValidationError
- func (e CreateCakeResponseValidationError) Cause() error
- func (e CreateCakeResponseValidationError) Error() string
- func (e CreateCakeResponseValidationError) ErrorName() string
- func (e CreateCakeResponseValidationError) Field() string
- func (e CreateCakeResponseValidationError) Key() bool
- func (e CreateCakeResponseValidationError) Reason() string
- type DeleteCakeRequest
- func (*DeleteCakeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteCakeRequest) GetId() int32
- func (*DeleteCakeRequest) ProtoMessage()
- func (x *DeleteCakeRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteCakeRequest) Reset()
- func (x *DeleteCakeRequest) String() string
- func (m *DeleteCakeRequest) Validate() error
- func (m *DeleteCakeRequest) ValidateAll() error
- type DeleteCakeRequestMultiError
- type DeleteCakeRequestValidationError
- func (e DeleteCakeRequestValidationError) Cause() error
- func (e DeleteCakeRequestValidationError) Error() string
- func (e DeleteCakeRequestValidationError) ErrorName() string
- func (e DeleteCakeRequestValidationError) Field() string
- func (e DeleteCakeRequestValidationError) Key() bool
- func (e DeleteCakeRequestValidationError) Reason() string
- type DeleteCakeResponse
- func (*DeleteCakeResponse) Descriptor() ([]byte, []int)deprecated
- func (*DeleteCakeResponse) ProtoMessage()
- func (x *DeleteCakeResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteCakeResponse) Reset()
- func (x *DeleteCakeResponse) String() string
- func (m *DeleteCakeResponse) Validate() error
- func (m *DeleteCakeResponse) ValidateAll() error
- type DeleteCakeResponseMultiError
- type DeleteCakeResponseValidationError
- func (e DeleteCakeResponseValidationError) Cause() error
- func (e DeleteCakeResponseValidationError) Error() string
- func (e DeleteCakeResponseValidationError) ErrorName() string
- func (e DeleteCakeResponseValidationError) Field() string
- func (e DeleteCakeResponseValidationError) Key() bool
- func (e DeleteCakeResponseValidationError) Reason() string
- type GetCakeRequest
- func (*GetCakeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetCakeRequest) GetId() int32
- func (*GetCakeRequest) ProtoMessage()
- func (x *GetCakeRequest) ProtoReflect() protoreflect.Message
- func (x *GetCakeRequest) Reset()
- func (x *GetCakeRequest) String() string
- func (m *GetCakeRequest) Validate() error
- func (m *GetCakeRequest) ValidateAll() error
- type GetCakeRequestMultiError
- type GetCakeRequestValidationError
- func (e GetCakeRequestValidationError) Cause() error
- func (e GetCakeRequestValidationError) Error() string
- func (e GetCakeRequestValidationError) ErrorName() string
- func (e GetCakeRequestValidationError) Field() string
- func (e GetCakeRequestValidationError) Key() bool
- func (e GetCakeRequestValidationError) Reason() string
- type GetCakeResponse
- func (*GetCakeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetCakeResponse) GetData() *Cake
- func (*GetCakeResponse) ProtoMessage()
- func (x *GetCakeResponse) ProtoReflect() protoreflect.Message
- func (x *GetCakeResponse) Reset()
- func (x *GetCakeResponse) String() string
- func (m *GetCakeResponse) Validate() error
- func (m *GetCakeResponse) ValidateAll() error
- type GetCakeResponseMultiError
- type GetCakeResponseValidationError
- func (e GetCakeResponseValidationError) Cause() error
- func (e GetCakeResponseValidationError) Error() string
- func (e GetCakeResponseValidationError) ErrorName() string
- func (e GetCakeResponseValidationError) Field() string
- func (e GetCakeResponseValidationError) Key() bool
- func (e GetCakeResponseValidationError) Reason() string
- type ListCakesRequest
- func (*ListCakesRequest) Descriptor() ([]byte, []int)deprecated
- func (*ListCakesRequest) ProtoMessage()
- func (x *ListCakesRequest) ProtoReflect() protoreflect.Message
- func (x *ListCakesRequest) Reset()
- func (x *ListCakesRequest) String() string
- func (m *ListCakesRequest) Validate() error
- func (m *ListCakesRequest) ValidateAll() error
- type ListCakesRequestMultiError
- type ListCakesRequestValidationError
- func (e ListCakesRequestValidationError) Cause() error
- func (e ListCakesRequestValidationError) Error() string
- func (e ListCakesRequestValidationError) ErrorName() string
- func (e ListCakesRequestValidationError) Field() string
- func (e ListCakesRequestValidationError) Key() bool
- func (e ListCakesRequestValidationError) Reason() string
- type ListCakesResponse
- func (*ListCakesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListCakesResponse) GetData() []*Cake
- func (*ListCakesResponse) ProtoMessage()
- func (x *ListCakesResponse) ProtoReflect() protoreflect.Message
- func (x *ListCakesResponse) Reset()
- func (x *ListCakesResponse) String() string
- func (m *ListCakesResponse) Validate() error
- func (m *ListCakesResponse) ValidateAll() error
- type ListCakesResponseMultiError
- type ListCakesResponseValidationError
- func (e ListCakesResponseValidationError) Cause() error
- func (e ListCakesResponseValidationError) Error() string
- func (e ListCakesResponseValidationError) ErrorName() string
- func (e ListCakesResponseValidationError) Field() string
- func (e ListCakesResponseValidationError) Key() bool
- func (e ListCakesResponseValidationError) Reason() string
- type UnimplementedCakesServiceServer
- func (UnimplementedCakesServiceServer) CreateCake(context.Context, *CreateCakeRequest) (*CreateCakeResponse, error)
- func (UnimplementedCakesServiceServer) DeleteCake(context.Context, *DeleteCakeRequest) (*DeleteCakeResponse, error)
- func (UnimplementedCakesServiceServer) GetCake(context.Context, *GetCakeRequest) (*GetCakeResponse, error)
- func (UnimplementedCakesServiceServer) ListCakes(context.Context, *ListCakesRequest) (*ListCakesResponse, error)
- func (UnimplementedCakesServiceServer) UpdateCake(context.Context, *UpdateCakeRequest) (*UpdateCakeResponse, error)
- type UnsafeCakesServiceServer
- type UpdateCakeRequest
- func (*UpdateCakeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateCakeRequest) GetDescription() string
- func (x *UpdateCakeRequest) GetId() int32
- func (x *UpdateCakeRequest) GetImage() string
- func (x *UpdateCakeRequest) GetRating() int32
- func (x *UpdateCakeRequest) GetTitle() string
- func (*UpdateCakeRequest) ProtoMessage()
- func (x *UpdateCakeRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateCakeRequest) Reset()
- func (x *UpdateCakeRequest) String() string
- func (m *UpdateCakeRequest) Validate() error
- func (m *UpdateCakeRequest) ValidateAll() error
- type UpdateCakeRequestMultiError
- type UpdateCakeRequestValidationError
- func (e UpdateCakeRequestValidationError) Cause() error
- func (e UpdateCakeRequestValidationError) Error() string
- func (e UpdateCakeRequestValidationError) ErrorName() string
- func (e UpdateCakeRequestValidationError) Field() string
- func (e UpdateCakeRequestValidationError) Key() bool
- func (e UpdateCakeRequestValidationError) Reason() string
- type UpdateCakeResponse
- func (*UpdateCakeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateCakeResponse) GetData() *Cake
- func (*UpdateCakeResponse) ProtoMessage()
- func (x *UpdateCakeResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateCakeResponse) Reset()
- func (x *UpdateCakeResponse) String() string
- func (m *UpdateCakeResponse) Validate() error
- func (m *UpdateCakeResponse) ValidateAll() error
- type UpdateCakeResponseMultiError
- type UpdateCakeResponseValidationError
- func (e UpdateCakeResponseValidationError) Cause() error
- func (e UpdateCakeResponseValidationError) Error() string
- func (e UpdateCakeResponseValidationError) ErrorName() string
- func (e UpdateCakeResponseValidationError) Field() string
- func (e UpdateCakeResponseValidationError) Key() bool
- func (e UpdateCakeResponseValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var CakesService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "cakes.v1.CakesService", HandlerType: (*CakesServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateCake", Handler: _CakesService_CreateCake_Handler, }, { MethodName: "GetCake", Handler: _CakesService_GetCake_Handler, }, { MethodName: "ListCakes", Handler: _CakesService_ListCakes_Handler, }, { MethodName: "UpdateCake", Handler: _CakesService_UpdateCake_Handler, }, { MethodName: "DeleteCake", Handler: _CakesService_DeleteCake_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "cakes/v1/cakes.proto", }
CakesService_ServiceDesc is the grpc.ServiceDesc for CakesService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_cakes_v1_cakes_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCakesServiceHandler ¶
func RegisterCakesServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterCakesServiceHandler registers the http handlers for service CakesService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterCakesServiceHandlerClient ¶
func RegisterCakesServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CakesServiceClient) error
RegisterCakesServiceHandlerClient registers the http handlers for service CakesService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "CakesServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "CakesServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "CakesServiceClient" to call the correct interceptors.
func RegisterCakesServiceHandlerFromEndpoint ¶
func RegisterCakesServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterCakesServiceHandlerFromEndpoint is same as RegisterCakesServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterCakesServiceHandlerServer ¶
func RegisterCakesServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server CakesServiceServer) error
RegisterCakesServiceHandlerServer registers the http handlers for service CakesService to "mux". UnaryRPC :call CakesServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterCakesServiceHandlerFromEndpoint instead.
func RegisterCakesServiceServer ¶
func RegisterCakesServiceServer(s grpc.ServiceRegistrar, srv CakesServiceServer)
Types ¶
type Cake ¶
type Cake struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` Rating int32 `protobuf:"varint,4,opt,name=rating,proto3" json:"rating,omitempty"` Image string `protobuf:"bytes,5,opt,name=image,proto3" json:"image,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // contains filtered or unexported fields }
func (*Cake) Descriptor
deprecated
func (*Cake) GetCreatedAt ¶
func (x *Cake) GetCreatedAt() *timestamppb.Timestamp
func (*Cake) GetDescription ¶
func (*Cake) GetUpdatedAt ¶
func (x *Cake) GetUpdatedAt() *timestamppb.Timestamp
func (*Cake) ProtoMessage ¶
func (*Cake) ProtoMessage()
func (*Cake) ProtoReflect ¶
func (x *Cake) ProtoReflect() protoreflect.Message
func (*Cake) Validate ¶
Validate checks the field values on Cake with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Cake) ValidateAll ¶
ValidateAll checks the field values on Cake with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CakeMultiError, or nil if none found.
type CakeMultiError ¶
type CakeMultiError []error
CakeMultiError is an error wrapping multiple validation errors returned by Cake.ValidateAll() if the designated constraints aren't met.
func (CakeMultiError) AllErrors ¶
func (m CakeMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CakeMultiError) Error ¶
func (m CakeMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CakeValidationError ¶
type CakeValidationError struct {
// contains filtered or unexported fields
}
CakeValidationError is the validation error returned by Cake.Validate if the designated constraints aren't met.
func (CakeValidationError) Cause ¶
func (e CakeValidationError) Cause() error
Cause function returns cause value.
func (CakeValidationError) Error ¶
func (e CakeValidationError) Error() string
Error satisfies the builtin error interface
func (CakeValidationError) ErrorName ¶
func (e CakeValidationError) ErrorName() string
ErrorName returns error name.
func (CakeValidationError) Field ¶
func (e CakeValidationError) Field() string
Field function returns field value.
func (CakeValidationError) Key ¶
func (e CakeValidationError) Key() bool
Key function returns key value.
func (CakeValidationError) Reason ¶
func (e CakeValidationError) Reason() string
Reason function returns reason value.
type CakesServiceClient ¶
type CakesServiceClient interface { CreateCake(ctx context.Context, in *CreateCakeRequest, opts ...grpc.CallOption) (*CreateCakeResponse, error) GetCake(ctx context.Context, in *GetCakeRequest, opts ...grpc.CallOption) (*GetCakeResponse, error) ListCakes(ctx context.Context, in *ListCakesRequest, opts ...grpc.CallOption) (*ListCakesResponse, error) UpdateCake(ctx context.Context, in *UpdateCakeRequest, opts ...grpc.CallOption) (*UpdateCakeResponse, error) DeleteCake(ctx context.Context, in *DeleteCakeRequest, opts ...grpc.CallOption) (*DeleteCakeResponse, error) }
CakesServiceClient is the client API for CakesService 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 NewCakesServiceClient ¶
func NewCakesServiceClient(cc grpc.ClientConnInterface) CakesServiceClient
type CakesServiceServer ¶
type CakesServiceServer interface { CreateCake(context.Context, *CreateCakeRequest) (*CreateCakeResponse, error) GetCake(context.Context, *GetCakeRequest) (*GetCakeResponse, error) ListCakes(context.Context, *ListCakesRequest) (*ListCakesResponse, error) UpdateCake(context.Context, *UpdateCakeRequest) (*UpdateCakeResponse, error) DeleteCake(context.Context, *DeleteCakeRequest) (*DeleteCakeResponse, error) }
CakesServiceServer is the server API for CakesService service. All implementations should embed UnimplementedCakesServiceServer for forward compatibility
type CreateCakeRequest ¶
type CreateCakeRequest struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` Rating int32 `protobuf:"varint,3,opt,name=rating,proto3" json:"rating,omitempty"` Image string `protobuf:"bytes,4,opt,name=image,proto3" json:"image,omitempty"` // contains filtered or unexported fields }
func (*CreateCakeRequest) Descriptor
deprecated
func (*CreateCakeRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateCakeRequest.ProtoReflect.Descriptor instead.
func (*CreateCakeRequest) GetDescription ¶
func (x *CreateCakeRequest) GetDescription() string
func (*CreateCakeRequest) GetImage ¶
func (x *CreateCakeRequest) GetImage() string
func (*CreateCakeRequest) GetRating ¶
func (x *CreateCakeRequest) GetRating() int32
func (*CreateCakeRequest) GetTitle ¶
func (x *CreateCakeRequest) GetTitle() string
func (*CreateCakeRequest) ProtoMessage ¶
func (*CreateCakeRequest) ProtoMessage()
func (*CreateCakeRequest) ProtoReflect ¶
func (x *CreateCakeRequest) ProtoReflect() protoreflect.Message
func (*CreateCakeRequest) Reset ¶
func (x *CreateCakeRequest) Reset()
func (*CreateCakeRequest) String ¶
func (x *CreateCakeRequest) String() string
func (*CreateCakeRequest) Validate ¶
func (m *CreateCakeRequest) Validate() error
Validate checks the field values on CreateCakeRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CreateCakeRequest) ValidateAll ¶
func (m *CreateCakeRequest) ValidateAll() error
ValidateAll checks the field values on CreateCakeRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateCakeRequestMultiError, or nil if none found.
type CreateCakeRequestMultiError ¶
type CreateCakeRequestMultiError []error
CreateCakeRequestMultiError is an error wrapping multiple validation errors returned by CreateCakeRequest.ValidateAll() if the designated constraints aren't met.
func (CreateCakeRequestMultiError) AllErrors ¶
func (m CreateCakeRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateCakeRequestMultiError) Error ¶
func (m CreateCakeRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateCakeRequestValidationError ¶
type CreateCakeRequestValidationError struct {
// contains filtered or unexported fields
}
CreateCakeRequestValidationError is the validation error returned by CreateCakeRequest.Validate if the designated constraints aren't met.
func (CreateCakeRequestValidationError) Cause ¶
func (e CreateCakeRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateCakeRequestValidationError) Error ¶
func (e CreateCakeRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateCakeRequestValidationError) ErrorName ¶
func (e CreateCakeRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateCakeRequestValidationError) Field ¶
func (e CreateCakeRequestValidationError) Field() string
Field function returns field value.
func (CreateCakeRequestValidationError) Key ¶
func (e CreateCakeRequestValidationError) Key() bool
Key function returns key value.
func (CreateCakeRequestValidationError) Reason ¶
func (e CreateCakeRequestValidationError) Reason() string
Reason function returns reason value.
type CreateCakeResponse ¶
type CreateCakeResponse struct { Data *Cake `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*CreateCakeResponse) Descriptor
deprecated
func (*CreateCakeResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateCakeResponse.ProtoReflect.Descriptor instead.
func (*CreateCakeResponse) GetData ¶
func (x *CreateCakeResponse) GetData() *Cake
func (*CreateCakeResponse) ProtoMessage ¶
func (*CreateCakeResponse) ProtoMessage()
func (*CreateCakeResponse) ProtoReflect ¶
func (x *CreateCakeResponse) ProtoReflect() protoreflect.Message
func (*CreateCakeResponse) Reset ¶
func (x *CreateCakeResponse) Reset()
func (*CreateCakeResponse) String ¶
func (x *CreateCakeResponse) String() string
func (*CreateCakeResponse) Validate ¶
func (m *CreateCakeResponse) Validate() error
Validate checks the field values on CreateCakeResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CreateCakeResponse) ValidateAll ¶
func (m *CreateCakeResponse) ValidateAll() error
ValidateAll checks the field values on CreateCakeResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateCakeResponseMultiError, or nil if none found.
type CreateCakeResponseMultiError ¶
type CreateCakeResponseMultiError []error
CreateCakeResponseMultiError is an error wrapping multiple validation errors returned by CreateCakeResponse.ValidateAll() if the designated constraints aren't met.
func (CreateCakeResponseMultiError) AllErrors ¶
func (m CreateCakeResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateCakeResponseMultiError) Error ¶
func (m CreateCakeResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateCakeResponseValidationError ¶
type CreateCakeResponseValidationError struct {
// contains filtered or unexported fields
}
CreateCakeResponseValidationError is the validation error returned by CreateCakeResponse.Validate if the designated constraints aren't met.
func (CreateCakeResponseValidationError) Cause ¶
func (e CreateCakeResponseValidationError) Cause() error
Cause function returns cause value.
func (CreateCakeResponseValidationError) Error ¶
func (e CreateCakeResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CreateCakeResponseValidationError) ErrorName ¶
func (e CreateCakeResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CreateCakeResponseValidationError) Field ¶
func (e CreateCakeResponseValidationError) Field() string
Field function returns field value.
func (CreateCakeResponseValidationError) Key ¶
func (e CreateCakeResponseValidationError) Key() bool
Key function returns key value.
func (CreateCakeResponseValidationError) Reason ¶
func (e CreateCakeResponseValidationError) Reason() string
Reason function returns reason value.
type DeleteCakeRequest ¶
type DeleteCakeRequest struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteCakeRequest) Descriptor
deprecated
func (*DeleteCakeRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteCakeRequest.ProtoReflect.Descriptor instead.
func (*DeleteCakeRequest) GetId ¶
func (x *DeleteCakeRequest) GetId() int32
func (*DeleteCakeRequest) ProtoMessage ¶
func (*DeleteCakeRequest) ProtoMessage()
func (*DeleteCakeRequest) ProtoReflect ¶
func (x *DeleteCakeRequest) ProtoReflect() protoreflect.Message
func (*DeleteCakeRequest) Reset ¶
func (x *DeleteCakeRequest) Reset()
func (*DeleteCakeRequest) String ¶
func (x *DeleteCakeRequest) String() string
func (*DeleteCakeRequest) Validate ¶
func (m *DeleteCakeRequest) Validate() error
Validate checks the field values on DeleteCakeRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DeleteCakeRequest) ValidateAll ¶
func (m *DeleteCakeRequest) ValidateAll() error
ValidateAll checks the field values on DeleteCakeRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteCakeRequestMultiError, or nil if none found.
type DeleteCakeRequestMultiError ¶
type DeleteCakeRequestMultiError []error
DeleteCakeRequestMultiError is an error wrapping multiple validation errors returned by DeleteCakeRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteCakeRequestMultiError) AllErrors ¶
func (m DeleteCakeRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteCakeRequestMultiError) Error ¶
func (m DeleteCakeRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteCakeRequestValidationError ¶
type DeleteCakeRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteCakeRequestValidationError is the validation error returned by DeleteCakeRequest.Validate if the designated constraints aren't met.
func (DeleteCakeRequestValidationError) Cause ¶
func (e DeleteCakeRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteCakeRequestValidationError) Error ¶
func (e DeleteCakeRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteCakeRequestValidationError) ErrorName ¶
func (e DeleteCakeRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteCakeRequestValidationError) Field ¶
func (e DeleteCakeRequestValidationError) Field() string
Field function returns field value.
func (DeleteCakeRequestValidationError) Key ¶
func (e DeleteCakeRequestValidationError) Key() bool
Key function returns key value.
func (DeleteCakeRequestValidationError) Reason ¶
func (e DeleteCakeRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteCakeResponse ¶
type DeleteCakeResponse struct {
// contains filtered or unexported fields
}
func (*DeleteCakeResponse) Descriptor
deprecated
func (*DeleteCakeResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteCakeResponse.ProtoReflect.Descriptor instead.
func (*DeleteCakeResponse) ProtoMessage ¶
func (*DeleteCakeResponse) ProtoMessage()
func (*DeleteCakeResponse) ProtoReflect ¶
func (x *DeleteCakeResponse) ProtoReflect() protoreflect.Message
func (*DeleteCakeResponse) Reset ¶
func (x *DeleteCakeResponse) Reset()
func (*DeleteCakeResponse) String ¶
func (x *DeleteCakeResponse) String() string
func (*DeleteCakeResponse) Validate ¶
func (m *DeleteCakeResponse) Validate() error
Validate checks the field values on DeleteCakeResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*DeleteCakeResponse) ValidateAll ¶
func (m *DeleteCakeResponse) ValidateAll() error
ValidateAll checks the field values on DeleteCakeResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in DeleteCakeResponseMultiError, or nil if none found.
type DeleteCakeResponseMultiError ¶
type DeleteCakeResponseMultiError []error
DeleteCakeResponseMultiError is an error wrapping multiple validation errors returned by DeleteCakeResponse.ValidateAll() if the designated constraints aren't met.
func (DeleteCakeResponseMultiError) AllErrors ¶
func (m DeleteCakeResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteCakeResponseMultiError) Error ¶
func (m DeleteCakeResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteCakeResponseValidationError ¶
type DeleteCakeResponseValidationError struct {
// contains filtered or unexported fields
}
DeleteCakeResponseValidationError is the validation error returned by DeleteCakeResponse.Validate if the designated constraints aren't met.
func (DeleteCakeResponseValidationError) Cause ¶
func (e DeleteCakeResponseValidationError) Cause() error
Cause function returns cause value.
func (DeleteCakeResponseValidationError) Error ¶
func (e DeleteCakeResponseValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteCakeResponseValidationError) ErrorName ¶
func (e DeleteCakeResponseValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteCakeResponseValidationError) Field ¶
func (e DeleteCakeResponseValidationError) Field() string
Field function returns field value.
func (DeleteCakeResponseValidationError) Key ¶
func (e DeleteCakeResponseValidationError) Key() bool
Key function returns key value.
func (DeleteCakeResponseValidationError) Reason ¶
func (e DeleteCakeResponseValidationError) Reason() string
Reason function returns reason value.
type GetCakeRequest ¶
type GetCakeRequest struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetCakeRequest) Descriptor
deprecated
func (*GetCakeRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetCakeRequest.ProtoReflect.Descriptor instead.
func (*GetCakeRequest) GetId ¶
func (x *GetCakeRequest) GetId() int32
func (*GetCakeRequest) ProtoMessage ¶
func (*GetCakeRequest) ProtoMessage()
func (*GetCakeRequest) ProtoReflect ¶
func (x *GetCakeRequest) ProtoReflect() protoreflect.Message
func (*GetCakeRequest) Reset ¶
func (x *GetCakeRequest) Reset()
func (*GetCakeRequest) String ¶
func (x *GetCakeRequest) String() string
func (*GetCakeRequest) Validate ¶
func (m *GetCakeRequest) Validate() error
Validate checks the field values on GetCakeRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetCakeRequest) ValidateAll ¶
func (m *GetCakeRequest) ValidateAll() error
ValidateAll checks the field values on GetCakeRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetCakeRequestMultiError, or nil if none found.
type GetCakeRequestMultiError ¶
type GetCakeRequestMultiError []error
GetCakeRequestMultiError is an error wrapping multiple validation errors returned by GetCakeRequest.ValidateAll() if the designated constraints aren't met.
func (GetCakeRequestMultiError) AllErrors ¶
func (m GetCakeRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetCakeRequestMultiError) Error ¶
func (m GetCakeRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetCakeRequestValidationError ¶
type GetCakeRequestValidationError struct {
// contains filtered or unexported fields
}
GetCakeRequestValidationError is the validation error returned by GetCakeRequest.Validate if the designated constraints aren't met.
func (GetCakeRequestValidationError) Cause ¶
func (e GetCakeRequestValidationError) Cause() error
Cause function returns cause value.
func (GetCakeRequestValidationError) Error ¶
func (e GetCakeRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetCakeRequestValidationError) ErrorName ¶
func (e GetCakeRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetCakeRequestValidationError) Field ¶
func (e GetCakeRequestValidationError) Field() string
Field function returns field value.
func (GetCakeRequestValidationError) Key ¶
func (e GetCakeRequestValidationError) Key() bool
Key function returns key value.
func (GetCakeRequestValidationError) Reason ¶
func (e GetCakeRequestValidationError) Reason() string
Reason function returns reason value.
type GetCakeResponse ¶
type GetCakeResponse struct { Data *Cake `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*GetCakeResponse) Descriptor
deprecated
func (*GetCakeResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetCakeResponse.ProtoReflect.Descriptor instead.
func (*GetCakeResponse) GetData ¶
func (x *GetCakeResponse) GetData() *Cake
func (*GetCakeResponse) ProtoMessage ¶
func (*GetCakeResponse) ProtoMessage()
func (*GetCakeResponse) ProtoReflect ¶
func (x *GetCakeResponse) ProtoReflect() protoreflect.Message
func (*GetCakeResponse) Reset ¶
func (x *GetCakeResponse) Reset()
func (*GetCakeResponse) String ¶
func (x *GetCakeResponse) String() string
func (*GetCakeResponse) Validate ¶
func (m *GetCakeResponse) Validate() error
Validate checks the field values on GetCakeResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetCakeResponse) ValidateAll ¶
func (m *GetCakeResponse) ValidateAll() error
ValidateAll checks the field values on GetCakeResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetCakeResponseMultiError, or nil if none found.
type GetCakeResponseMultiError ¶
type GetCakeResponseMultiError []error
GetCakeResponseMultiError is an error wrapping multiple validation errors returned by GetCakeResponse.ValidateAll() if the designated constraints aren't met.
func (GetCakeResponseMultiError) AllErrors ¶
func (m GetCakeResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetCakeResponseMultiError) Error ¶
func (m GetCakeResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetCakeResponseValidationError ¶
type GetCakeResponseValidationError struct {
// contains filtered or unexported fields
}
GetCakeResponseValidationError is the validation error returned by GetCakeResponse.Validate if the designated constraints aren't met.
func (GetCakeResponseValidationError) Cause ¶
func (e GetCakeResponseValidationError) Cause() error
Cause function returns cause value.
func (GetCakeResponseValidationError) Error ¶
func (e GetCakeResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetCakeResponseValidationError) ErrorName ¶
func (e GetCakeResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetCakeResponseValidationError) Field ¶
func (e GetCakeResponseValidationError) Field() string
Field function returns field value.
func (GetCakeResponseValidationError) Key ¶
func (e GetCakeResponseValidationError) Key() bool
Key function returns key value.
func (GetCakeResponseValidationError) Reason ¶
func (e GetCakeResponseValidationError) Reason() string
Reason function returns reason value.
type ListCakesRequest ¶
type ListCakesRequest struct {
// contains filtered or unexported fields
}
func (*ListCakesRequest) Descriptor
deprecated
func (*ListCakesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListCakesRequest.ProtoReflect.Descriptor instead.
func (*ListCakesRequest) ProtoMessage ¶
func (*ListCakesRequest) ProtoMessage()
func (*ListCakesRequest) ProtoReflect ¶
func (x *ListCakesRequest) ProtoReflect() protoreflect.Message
func (*ListCakesRequest) Reset ¶
func (x *ListCakesRequest) Reset()
func (*ListCakesRequest) String ¶
func (x *ListCakesRequest) String() string
func (*ListCakesRequest) Validate ¶
func (m *ListCakesRequest) Validate() error
Validate checks the field values on ListCakesRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ListCakesRequest) ValidateAll ¶
func (m *ListCakesRequest) ValidateAll() error
ValidateAll checks the field values on ListCakesRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListCakesRequestMultiError, or nil if none found.
type ListCakesRequestMultiError ¶
type ListCakesRequestMultiError []error
ListCakesRequestMultiError is an error wrapping multiple validation errors returned by ListCakesRequest.ValidateAll() if the designated constraints aren't met.
func (ListCakesRequestMultiError) AllErrors ¶
func (m ListCakesRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListCakesRequestMultiError) Error ¶
func (m ListCakesRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListCakesRequestValidationError ¶
type ListCakesRequestValidationError struct {
// contains filtered or unexported fields
}
ListCakesRequestValidationError is the validation error returned by ListCakesRequest.Validate if the designated constraints aren't met.
func (ListCakesRequestValidationError) Cause ¶
func (e ListCakesRequestValidationError) Cause() error
Cause function returns cause value.
func (ListCakesRequestValidationError) Error ¶
func (e ListCakesRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListCakesRequestValidationError) ErrorName ¶
func (e ListCakesRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListCakesRequestValidationError) Field ¶
func (e ListCakesRequestValidationError) Field() string
Field function returns field value.
func (ListCakesRequestValidationError) Key ¶
func (e ListCakesRequestValidationError) Key() bool
Key function returns key value.
func (ListCakesRequestValidationError) Reason ¶
func (e ListCakesRequestValidationError) Reason() string
Reason function returns reason value.
type ListCakesResponse ¶
type ListCakesResponse struct { Data []*Cake `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*ListCakesResponse) Descriptor
deprecated
func (*ListCakesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListCakesResponse.ProtoReflect.Descriptor instead.
func (*ListCakesResponse) GetData ¶
func (x *ListCakesResponse) GetData() []*Cake
func (*ListCakesResponse) ProtoMessage ¶
func (*ListCakesResponse) ProtoMessage()
func (*ListCakesResponse) ProtoReflect ¶
func (x *ListCakesResponse) ProtoReflect() protoreflect.Message
func (*ListCakesResponse) Reset ¶
func (x *ListCakesResponse) Reset()
func (*ListCakesResponse) String ¶
func (x *ListCakesResponse) String() string
func (*ListCakesResponse) Validate ¶
func (m *ListCakesResponse) Validate() error
Validate checks the field values on ListCakesResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ListCakesResponse) ValidateAll ¶
func (m *ListCakesResponse) ValidateAll() error
ValidateAll checks the field values on ListCakesResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListCakesResponseMultiError, or nil if none found.
type ListCakesResponseMultiError ¶
type ListCakesResponseMultiError []error
ListCakesResponseMultiError is an error wrapping multiple validation errors returned by ListCakesResponse.ValidateAll() if the designated constraints aren't met.
func (ListCakesResponseMultiError) AllErrors ¶
func (m ListCakesResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListCakesResponseMultiError) Error ¶
func (m ListCakesResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListCakesResponseValidationError ¶
type ListCakesResponseValidationError struct {
// contains filtered or unexported fields
}
ListCakesResponseValidationError is the validation error returned by ListCakesResponse.Validate if the designated constraints aren't met.
func (ListCakesResponseValidationError) Cause ¶
func (e ListCakesResponseValidationError) Cause() error
Cause function returns cause value.
func (ListCakesResponseValidationError) Error ¶
func (e ListCakesResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListCakesResponseValidationError) ErrorName ¶
func (e ListCakesResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListCakesResponseValidationError) Field ¶
func (e ListCakesResponseValidationError) Field() string
Field function returns field value.
func (ListCakesResponseValidationError) Key ¶
func (e ListCakesResponseValidationError) Key() bool
Key function returns key value.
func (ListCakesResponseValidationError) Reason ¶
func (e ListCakesResponseValidationError) Reason() string
Reason function returns reason value.
type UnimplementedCakesServiceServer ¶
type UnimplementedCakesServiceServer struct { }
UnimplementedCakesServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedCakesServiceServer) CreateCake ¶
func (UnimplementedCakesServiceServer) CreateCake(context.Context, *CreateCakeRequest) (*CreateCakeResponse, error)
func (UnimplementedCakesServiceServer) DeleteCake ¶
func (UnimplementedCakesServiceServer) DeleteCake(context.Context, *DeleteCakeRequest) (*DeleteCakeResponse, error)
func (UnimplementedCakesServiceServer) GetCake ¶
func (UnimplementedCakesServiceServer) GetCake(context.Context, *GetCakeRequest) (*GetCakeResponse, error)
func (UnimplementedCakesServiceServer) ListCakes ¶
func (UnimplementedCakesServiceServer) ListCakes(context.Context, *ListCakesRequest) (*ListCakesResponse, error)
func (UnimplementedCakesServiceServer) UpdateCake ¶
func (UnimplementedCakesServiceServer) UpdateCake(context.Context, *UpdateCakeRequest) (*UpdateCakeResponse, error)
type UnsafeCakesServiceServer ¶
type UnsafeCakesServiceServer interface {
// contains filtered or unexported methods
}
UnsafeCakesServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CakesServiceServer will result in compilation errors.
type UpdateCakeRequest ¶
type UpdateCakeRequest struct { Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` Rating int32 `protobuf:"varint,4,opt,name=rating,proto3" json:"rating,omitempty"` Image string `protobuf:"bytes,5,opt,name=image,proto3" json:"image,omitempty"` // contains filtered or unexported fields }
func (*UpdateCakeRequest) Descriptor
deprecated
func (*UpdateCakeRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateCakeRequest.ProtoReflect.Descriptor instead.
func (*UpdateCakeRequest) GetDescription ¶
func (x *UpdateCakeRequest) GetDescription() string
func (*UpdateCakeRequest) GetId ¶
func (x *UpdateCakeRequest) GetId() int32
func (*UpdateCakeRequest) GetImage ¶
func (x *UpdateCakeRequest) GetImage() string
func (*UpdateCakeRequest) GetRating ¶
func (x *UpdateCakeRequest) GetRating() int32
func (*UpdateCakeRequest) GetTitle ¶
func (x *UpdateCakeRequest) GetTitle() string
func (*UpdateCakeRequest) ProtoMessage ¶
func (*UpdateCakeRequest) ProtoMessage()
func (*UpdateCakeRequest) ProtoReflect ¶
func (x *UpdateCakeRequest) ProtoReflect() protoreflect.Message
func (*UpdateCakeRequest) Reset ¶
func (x *UpdateCakeRequest) Reset()
func (*UpdateCakeRequest) String ¶
func (x *UpdateCakeRequest) String() string
func (*UpdateCakeRequest) Validate ¶
func (m *UpdateCakeRequest) Validate() error
Validate checks the field values on UpdateCakeRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UpdateCakeRequest) ValidateAll ¶
func (m *UpdateCakeRequest) ValidateAll() error
ValidateAll checks the field values on UpdateCakeRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateCakeRequestMultiError, or nil if none found.
type UpdateCakeRequestMultiError ¶
type UpdateCakeRequestMultiError []error
UpdateCakeRequestMultiError is an error wrapping multiple validation errors returned by UpdateCakeRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateCakeRequestMultiError) AllErrors ¶
func (m UpdateCakeRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateCakeRequestMultiError) Error ¶
func (m UpdateCakeRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateCakeRequestValidationError ¶
type UpdateCakeRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateCakeRequestValidationError is the validation error returned by UpdateCakeRequest.Validate if the designated constraints aren't met.
func (UpdateCakeRequestValidationError) Cause ¶
func (e UpdateCakeRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateCakeRequestValidationError) Error ¶
func (e UpdateCakeRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateCakeRequestValidationError) ErrorName ¶
func (e UpdateCakeRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateCakeRequestValidationError) Field ¶
func (e UpdateCakeRequestValidationError) Field() string
Field function returns field value.
func (UpdateCakeRequestValidationError) Key ¶
func (e UpdateCakeRequestValidationError) Key() bool
Key function returns key value.
func (UpdateCakeRequestValidationError) Reason ¶
func (e UpdateCakeRequestValidationError) Reason() string
Reason function returns reason value.
type UpdateCakeResponse ¶
type UpdateCakeResponse struct { Data *Cake `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*UpdateCakeResponse) Descriptor
deprecated
func (*UpdateCakeResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateCakeResponse.ProtoReflect.Descriptor instead.
func (*UpdateCakeResponse) GetData ¶
func (x *UpdateCakeResponse) GetData() *Cake
func (*UpdateCakeResponse) ProtoMessage ¶
func (*UpdateCakeResponse) ProtoMessage()
func (*UpdateCakeResponse) ProtoReflect ¶
func (x *UpdateCakeResponse) ProtoReflect() protoreflect.Message
func (*UpdateCakeResponse) Reset ¶
func (x *UpdateCakeResponse) Reset()
func (*UpdateCakeResponse) String ¶
func (x *UpdateCakeResponse) String() string
func (*UpdateCakeResponse) Validate ¶
func (m *UpdateCakeResponse) Validate() error
Validate checks the field values on UpdateCakeResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UpdateCakeResponse) ValidateAll ¶
func (m *UpdateCakeResponse) ValidateAll() error
ValidateAll checks the field values on UpdateCakeResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateCakeResponseMultiError, or nil if none found.
type UpdateCakeResponseMultiError ¶
type UpdateCakeResponseMultiError []error
UpdateCakeResponseMultiError is an error wrapping multiple validation errors returned by UpdateCakeResponse.ValidateAll() if the designated constraints aren't met.
func (UpdateCakeResponseMultiError) AllErrors ¶
func (m UpdateCakeResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateCakeResponseMultiError) Error ¶
func (m UpdateCakeResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateCakeResponseValidationError ¶
type UpdateCakeResponseValidationError struct {
// contains filtered or unexported fields
}
UpdateCakeResponseValidationError is the validation error returned by UpdateCakeResponse.Validate if the designated constraints aren't met.
func (UpdateCakeResponseValidationError) Cause ¶
func (e UpdateCakeResponseValidationError) Cause() error
Cause function returns cause value.
func (UpdateCakeResponseValidationError) Error ¶
func (e UpdateCakeResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateCakeResponseValidationError) ErrorName ¶
func (e UpdateCakeResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateCakeResponseValidationError) Field ¶
func (e UpdateCakeResponseValidationError) Field() string
Field function returns field value.
func (UpdateCakeResponseValidationError) Key ¶
func (e UpdateCakeResponseValidationError) Key() bool
Key function returns key value.
func (UpdateCakeResponseValidationError) Reason ¶
func (e UpdateCakeResponseValidationError) Reason() string
Reason function returns reason value.