Documentation ¶
Overview ¶
Package proto is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterNoteServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterNoteServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client NoteServiceClient) error
- func RegisterNoteServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterNoteServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server NoteServiceServer) error
- func RegisterNoteServiceServer(s grpc.ServiceRegistrar, srv NoteServiceServer)
- type CreateNoteRequest
- func (*CreateNoteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateNoteRequest) GetCompletionTime() *timestamppb.Timestamp
- func (x *CreateNoteRequest) GetContent() string
- func (x *CreateNoteRequest) GetPriority() string
- func (x *CreateNoteRequest) GetTitle() string
- func (*CreateNoteRequest) ProtoMessage()
- func (x *CreateNoteRequest) ProtoReflect() protoreflect.Message
- func (x *CreateNoteRequest) Reset()
- func (x *CreateNoteRequest) String() string
- func (m *CreateNoteRequest) Validate() error
- func (m *CreateNoteRequest) ValidateAll() error
- type CreateNoteRequestMultiError
- type CreateNoteRequestValidationError
- func (e CreateNoteRequestValidationError) Cause() error
- func (e CreateNoteRequestValidationError) Error() string
- func (e CreateNoteRequestValidationError) ErrorName() string
- func (e CreateNoteRequestValidationError) Field() string
- func (e CreateNoteRequestValidationError) Key() bool
- func (e CreateNoteRequestValidationError) Reason() string
- type CreateNoteResponse
- func (*CreateNoteResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateNoteResponse) GetId() string
- func (x *CreateNoteResponse) GetUserId() string
- func (*CreateNoteResponse) ProtoMessage()
- func (x *CreateNoteResponse) ProtoReflect() protoreflect.Message
- func (x *CreateNoteResponse) Reset()
- func (x *CreateNoteResponse) String() string
- func (m *CreateNoteResponse) Validate() error
- func (m *CreateNoteResponse) ValidateAll() error
- type CreateNoteResponseMultiError
- type CreateNoteResponseValidationError
- func (e CreateNoteResponseValidationError) Cause() error
- func (e CreateNoteResponseValidationError) Error() string
- func (e CreateNoteResponseValidationError) ErrorName() string
- func (e CreateNoteResponseValidationError) Field() string
- func (e CreateNoteResponseValidationError) Key() bool
- func (e CreateNoteResponseValidationError) Reason() string
- type DeleteNoteRequest
- func (*DeleteNoteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteNoteRequest) GetId() string
- func (*DeleteNoteRequest) ProtoMessage()
- func (x *DeleteNoteRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteNoteRequest) Reset()
- func (x *DeleteNoteRequest) String() string
- func (m *DeleteNoteRequest) Validate() error
- func (m *DeleteNoteRequest) ValidateAll() error
- type DeleteNoteRequestMultiError
- type DeleteNoteRequestValidationError
- func (e DeleteNoteRequestValidationError) Cause() error
- func (e DeleteNoteRequestValidationError) Error() string
- func (e DeleteNoteRequestValidationError) ErrorName() string
- func (e DeleteNoteRequestValidationError) Field() string
- func (e DeleteNoteRequestValidationError) Key() bool
- func (e DeleteNoteRequestValidationError) Reason() string
- type DeleteNoteResponse
- func (*DeleteNoteResponse) Descriptor() ([]byte, []int)deprecated
- func (*DeleteNoteResponse) ProtoMessage()
- func (x *DeleteNoteResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteNoteResponse) Reset()
- func (x *DeleteNoteResponse) String() string
- func (m *DeleteNoteResponse) Validate() error
- func (m *DeleteNoteResponse) ValidateAll() error
- type DeleteNoteResponseMultiError
- type DeleteNoteResponseValidationError
- func (e DeleteNoteResponseValidationError) Cause() error
- func (e DeleteNoteResponseValidationError) Error() string
- func (e DeleteNoteResponseValidationError) ErrorName() string
- func (e DeleteNoteResponseValidationError) Field() string
- func (e DeleteNoteResponseValidationError) Key() bool
- func (e DeleteNoteResponseValidationError) Reason() string
- type GetNoteRequest
- func (*GetNoteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetNoteRequest) GetId() string
- func (*GetNoteRequest) ProtoMessage()
- func (x *GetNoteRequest) ProtoReflect() protoreflect.Message
- func (x *GetNoteRequest) Reset()
- func (x *GetNoteRequest) String() string
- func (m *GetNoteRequest) Validate() error
- func (m *GetNoteRequest) ValidateAll() error
- type GetNoteRequestMultiError
- type GetNoteRequestValidationError
- func (e GetNoteRequestValidationError) Cause() error
- func (e GetNoteRequestValidationError) Error() string
- func (e GetNoteRequestValidationError) ErrorName() string
- func (e GetNoteRequestValidationError) Field() string
- func (e GetNoteRequestValidationError) Key() bool
- func (e GetNoteRequestValidationError) Reason() string
- type GetNoteResponse
- func (*GetNoteResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetNoteResponse) GetCompletionTime() *timestamppb.Timestamp
- func (x *GetNoteResponse) GetContent() string
- func (x *GetNoteResponse) GetCreatedAt() *timestamppb.Timestamp
- func (x *GetNoteResponse) GetPriority() string
- func (x *GetNoteResponse) GetTitle() string
- func (x *GetNoteResponse) GetUserId() string
- func (*GetNoteResponse) ProtoMessage()
- func (x *GetNoteResponse) ProtoReflect() protoreflect.Message
- func (x *GetNoteResponse) Reset()
- func (x *GetNoteResponse) String() string
- func (m *GetNoteResponse) Validate() error
- func (m *GetNoteResponse) ValidateAll() error
- type GetNoteResponseMultiError
- type GetNoteResponseValidationError
- func (e GetNoteResponseValidationError) Cause() error
- func (e GetNoteResponseValidationError) Error() string
- func (e GetNoteResponseValidationError) ErrorName() string
- func (e GetNoteResponseValidationError) Field() string
- func (e GetNoteResponseValidationError) Key() bool
- func (e GetNoteResponseValidationError) Reason() string
- type GetNotesRequest
- func (*GetNotesRequest) Descriptor() ([]byte, []int)deprecated
- func (*GetNotesRequest) ProtoMessage()
- func (x *GetNotesRequest) ProtoReflect() protoreflect.Message
- func (x *GetNotesRequest) Reset()
- func (x *GetNotesRequest) String() string
- func (m *GetNotesRequest) Validate() error
- func (m *GetNotesRequest) ValidateAll() error
- type GetNotesRequestMultiError
- type GetNotesRequestValidationError
- func (e GetNotesRequestValidationError) Cause() error
- func (e GetNotesRequestValidationError) Error() string
- func (e GetNotesRequestValidationError) ErrorName() string
- func (e GetNotesRequestValidationError) Field() string
- func (e GetNotesRequestValidationError) Key() bool
- func (e GetNotesRequestValidationError) Reason() string
- type GetNotesResponse
- func (*GetNotesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetNotesResponse) GetCompletionTime() *timestamppb.Timestamp
- func (x *GetNotesResponse) GetContent() string
- func (x *GetNotesResponse) GetCreatedAt() *timestamppb.Timestamp
- func (x *GetNotesResponse) GetId() string
- func (x *GetNotesResponse) GetPriority() string
- func (x *GetNotesResponse) GetTitle() string
- func (*GetNotesResponse) ProtoMessage()
- func (x *GetNotesResponse) ProtoReflect() protoreflect.Message
- func (x *GetNotesResponse) Reset()
- func (x *GetNotesResponse) String() string
- func (m *GetNotesResponse) Validate() error
- func (m *GetNotesResponse) ValidateAll() error
- type GetNotesResponseMultiError
- type GetNotesResponseValidationError
- func (e GetNotesResponseValidationError) Cause() error
- func (e GetNotesResponseValidationError) Error() string
- func (e GetNotesResponseValidationError) ErrorName() string
- func (e GetNotesResponseValidationError) Field() string
- func (e GetNotesResponseValidationError) Key() bool
- func (e GetNotesResponseValidationError) Reason() string
- type NoteServiceClient
- type NoteServiceServer
- type NoteService_GetNotesClient
- type NoteService_GetNotesServer
- type UnimplementedNoteServiceServer
- func (UnimplementedNoteServiceServer) CreateNote(context.Context, *CreateNoteRequest) (*CreateNoteResponse, error)
- func (UnimplementedNoteServiceServer) DeleteNote(context.Context, *DeleteNoteRequest) (*DeleteNoteResponse, error)
- func (UnimplementedNoteServiceServer) GetNote(context.Context, *GetNoteRequest) (*GetNoteResponse, error)
- func (UnimplementedNoteServiceServer) GetNotes(*GetNotesRequest, NoteService_GetNotesServer) error
- func (UnimplementedNoteServiceServer) UpdateNote(context.Context, *UpdateNoteRequest) (*UpdateNoteResponse, error)
- type UnsafeNoteServiceServer
- type UpdateNoteRequest
- func (*UpdateNoteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateNoteRequest) GetId() string
- func (x *UpdateNoteRequest) GetNewCompletionTime() *timestamppb.Timestamp
- func (x *UpdateNoteRequest) GetNewContent() string
- func (x *UpdateNoteRequest) GetNewPriority() string
- func (x *UpdateNoteRequest) GetNewTitle() string
- func (*UpdateNoteRequest) ProtoMessage()
- func (x *UpdateNoteRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateNoteRequest) Reset()
- func (x *UpdateNoteRequest) String() string
- func (m *UpdateNoteRequest) Validate() error
- func (m *UpdateNoteRequest) ValidateAll() error
- type UpdateNoteRequestMultiError
- type UpdateNoteRequestValidationError
- func (e UpdateNoteRequestValidationError) Cause() error
- func (e UpdateNoteRequestValidationError) Error() string
- func (e UpdateNoteRequestValidationError) ErrorName() string
- func (e UpdateNoteRequestValidationError) Field() string
- func (e UpdateNoteRequestValidationError) Key() bool
- func (e UpdateNoteRequestValidationError) Reason() string
- type UpdateNoteResponse
- func (*UpdateNoteResponse) Descriptor() ([]byte, []int)deprecated
- func (*UpdateNoteResponse) ProtoMessage()
- func (x *UpdateNoteResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateNoteResponse) Reset()
- func (x *UpdateNoteResponse) String() string
- func (m *UpdateNoteResponse) Validate() error
- func (m *UpdateNoteResponse) ValidateAll() error
- type UpdateNoteResponseMultiError
- type UpdateNoteResponseValidationError
- func (e UpdateNoteResponseValidationError) Cause() error
- func (e UpdateNoteResponseValidationError) Error() string
- func (e UpdateNoteResponseValidationError) ErrorName() string
- func (e UpdateNoteResponseValidationError) Field() string
- func (e UpdateNoteResponseValidationError) Key() bool
- func (e UpdateNoteResponseValidationError) Reason() string
Constants ¶
const ( NoteService_CreateNote_FullMethodName = "/NoteService/CreateNote" NoteService_GetNote_FullMethodName = "/NoteService/GetNote" NoteService_GetNotes_FullMethodName = "/NoteService/GetNotes" NoteService_UpdateNote_FullMethodName = "/NoteService/UpdateNote" NoteService_DeleteNote_FullMethodName = "/NoteService/DeleteNote" )
Variables ¶
var File_createnote_proto protoreflect.FileDescriptor
var File_deletenote_proto protoreflect.FileDescriptor
var File_getnote_proto protoreflect.FileDescriptor
var File_getnotes_proto protoreflect.FileDescriptor
var File_note_proto protoreflect.FileDescriptor
var File_updatenote_proto protoreflect.FileDescriptor
var NoteService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "NoteService", HandlerType: (*NoteServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateNote", Handler: _NoteService_CreateNote_Handler, }, { MethodName: "GetNote", Handler: _NoteService_GetNote_Handler, }, { MethodName: "UpdateNote", Handler: _NoteService_UpdateNote_Handler, }, { MethodName: "DeleteNote", Handler: _NoteService_DeleteNote_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "GetNotes", Handler: _NoteService_GetNotes_Handler, ServerStreams: true, }, }, Metadata: "note.proto", }
NoteService_ServiceDesc is the grpc.ServiceDesc for NoteService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterNoteServiceHandler ¶
func RegisterNoteServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterNoteServiceHandler registers the http handlers for service NoteService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterNoteServiceHandlerClient ¶
func RegisterNoteServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client NoteServiceClient) error
RegisterNoteServiceHandlerClient registers the http handlers for service NoteService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "NoteServiceClient". Models: the gRPC framework executes interceptors within the gRPC handler. If the passed in "NoteServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "NoteServiceClient" to call the correct interceptors.
func RegisterNoteServiceHandlerFromEndpoint ¶
func RegisterNoteServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterNoteServiceHandlerFromEndpoint is same as RegisterNoteServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterNoteServiceHandlerServer ¶
func RegisterNoteServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server NoteServiceServer) error
RegisterNoteServiceHandlerServer registers the http handlers for service NoteService to "mux". UnaryRPC :call NoteServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Models that using this registration option will cause many gRPC library features to stop working. Consider using RegisterNoteServiceHandlerFromEndpoint instead.
func RegisterNoteServiceServer ¶
func RegisterNoteServiceServer(s grpc.ServiceRegistrar, srv NoteServiceServer)
Types ¶
type CreateNoteRequest ¶
type CreateNoteRequest struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` Priority *string `protobuf:"bytes,3,opt,name=priority,proto3,oneof" json:"priority,omitempty"` CompletionTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=completion_time,json=completionTime,proto3,oneof" json:"completion_time,omitempty"` // contains filtered or unexported fields }
func (*CreateNoteRequest) Descriptor
deprecated
func (*CreateNoteRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateNoteRequest.ProtoReflect.Descriptor instead.
func (*CreateNoteRequest) GetCompletionTime ¶
func (x *CreateNoteRequest) GetCompletionTime() *timestamppb.Timestamp
func (*CreateNoteRequest) GetContent ¶
func (x *CreateNoteRequest) GetContent() string
func (*CreateNoteRequest) GetPriority ¶
func (x *CreateNoteRequest) GetPriority() string
func (*CreateNoteRequest) GetTitle ¶
func (x *CreateNoteRequest) GetTitle() string
func (*CreateNoteRequest) ProtoMessage ¶
func (*CreateNoteRequest) ProtoMessage()
func (*CreateNoteRequest) ProtoReflect ¶
func (x *CreateNoteRequest) ProtoReflect() protoreflect.Message
func (*CreateNoteRequest) Reset ¶
func (x *CreateNoteRequest) Reset()
func (*CreateNoteRequest) String ¶
func (x *CreateNoteRequest) String() string
func (*CreateNoteRequest) Validate ¶
func (m *CreateNoteRequest) Validate() error
Validate checks the field values on CreateNoteRequest 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 (*CreateNoteRequest) ValidateAll ¶
func (m *CreateNoteRequest) ValidateAll() error
ValidateAll checks the field values on CreateNoteRequest 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 CreateNoteRequestMultiError, or nil if none found.
type CreateNoteRequestMultiError ¶
type CreateNoteRequestMultiError []error
CreateNoteRequestMultiError is an error wrapping multiple validation errors returned by CreateNoteRequest.ValidateAll() if the designated constraints aren't met.
func (CreateNoteRequestMultiError) AllErrors ¶
func (m CreateNoteRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateNoteRequestMultiError) Error ¶
func (m CreateNoteRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateNoteRequestValidationError ¶
type CreateNoteRequestValidationError struct {
// contains filtered or unexported fields
}
CreateNoteRequestValidationError is the validation error returned by CreateNoteRequest.Validate if the designated constraints aren't met.
func (CreateNoteRequestValidationError) Cause ¶
func (e CreateNoteRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateNoteRequestValidationError) Error ¶
func (e CreateNoteRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateNoteRequestValidationError) ErrorName ¶
func (e CreateNoteRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateNoteRequestValidationError) Field ¶
func (e CreateNoteRequestValidationError) Field() string
Field function returns field value.
func (CreateNoteRequestValidationError) Key ¶
func (e CreateNoteRequestValidationError) Key() bool
Key function returns key value.
func (CreateNoteRequestValidationError) Reason ¶
func (e CreateNoteRequestValidationError) Reason() string
Reason function returns reason value.
type CreateNoteResponse ¶
type CreateNoteResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` UserId string `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*CreateNoteResponse) Descriptor
deprecated
func (*CreateNoteResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateNoteResponse.ProtoReflect.Descriptor instead.
func (*CreateNoteResponse) GetId ¶
func (x *CreateNoteResponse) GetId() string
func (*CreateNoteResponse) GetUserId ¶
func (x *CreateNoteResponse) GetUserId() string
func (*CreateNoteResponse) ProtoMessage ¶
func (*CreateNoteResponse) ProtoMessage()
func (*CreateNoteResponse) ProtoReflect ¶
func (x *CreateNoteResponse) ProtoReflect() protoreflect.Message
func (*CreateNoteResponse) Reset ¶
func (x *CreateNoteResponse) Reset()
func (*CreateNoteResponse) String ¶
func (x *CreateNoteResponse) String() string
func (*CreateNoteResponse) Validate ¶
func (m *CreateNoteResponse) Validate() error
Validate checks the field values on CreateNoteResponse 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 (*CreateNoteResponse) ValidateAll ¶
func (m *CreateNoteResponse) ValidateAll() error
ValidateAll checks the field values on CreateNoteResponse 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 CreateNoteResponseMultiError, or nil if none found.
type CreateNoteResponseMultiError ¶
type CreateNoteResponseMultiError []error
CreateNoteResponseMultiError is an error wrapping multiple validation errors returned by CreateNoteResponse.ValidateAll() if the designated constraints aren't met.
func (CreateNoteResponseMultiError) AllErrors ¶
func (m CreateNoteResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateNoteResponseMultiError) Error ¶
func (m CreateNoteResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateNoteResponseValidationError ¶
type CreateNoteResponseValidationError struct {
// contains filtered or unexported fields
}
CreateNoteResponseValidationError is the validation error returned by CreateNoteResponse.Validate if the designated constraints aren't met.
func (CreateNoteResponseValidationError) Cause ¶
func (e CreateNoteResponseValidationError) Cause() error
Cause function returns cause value.
func (CreateNoteResponseValidationError) Error ¶
func (e CreateNoteResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CreateNoteResponseValidationError) ErrorName ¶
func (e CreateNoteResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CreateNoteResponseValidationError) Field ¶
func (e CreateNoteResponseValidationError) Field() string
Field function returns field value.
func (CreateNoteResponseValidationError) Key ¶
func (e CreateNoteResponseValidationError) Key() bool
Key function returns key value.
func (CreateNoteResponseValidationError) Reason ¶
func (e CreateNoteResponseValidationError) Reason() string
Reason function returns reason value.
type DeleteNoteRequest ¶
type DeleteNoteRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteNoteRequest) Descriptor
deprecated
func (*DeleteNoteRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteNoteRequest.ProtoReflect.Descriptor instead.
func (*DeleteNoteRequest) GetId ¶
func (x *DeleteNoteRequest) GetId() string
func (*DeleteNoteRequest) ProtoMessage ¶
func (*DeleteNoteRequest) ProtoMessage()
func (*DeleteNoteRequest) ProtoReflect ¶
func (x *DeleteNoteRequest) ProtoReflect() protoreflect.Message
func (*DeleteNoteRequest) Reset ¶
func (x *DeleteNoteRequest) Reset()
func (*DeleteNoteRequest) String ¶
func (x *DeleteNoteRequest) String() string
func (*DeleteNoteRequest) Validate ¶
func (m *DeleteNoteRequest) Validate() error
Validate checks the field values on DeleteNoteRequest 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 (*DeleteNoteRequest) ValidateAll ¶
func (m *DeleteNoteRequest) ValidateAll() error
ValidateAll checks the field values on DeleteNoteRequest 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 DeleteNoteRequestMultiError, or nil if none found.
type DeleteNoteRequestMultiError ¶
type DeleteNoteRequestMultiError []error
DeleteNoteRequestMultiError is an error wrapping multiple validation errors returned by DeleteNoteRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteNoteRequestMultiError) AllErrors ¶
func (m DeleteNoteRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteNoteRequestMultiError) Error ¶
func (m DeleteNoteRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteNoteRequestValidationError ¶
type DeleteNoteRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteNoteRequestValidationError is the validation error returned by DeleteNoteRequest.Validate if the designated constraints aren't met.
func (DeleteNoteRequestValidationError) Cause ¶
func (e DeleteNoteRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteNoteRequestValidationError) Error ¶
func (e DeleteNoteRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteNoteRequestValidationError) ErrorName ¶
func (e DeleteNoteRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteNoteRequestValidationError) Field ¶
func (e DeleteNoteRequestValidationError) Field() string
Field function returns field value.
func (DeleteNoteRequestValidationError) Key ¶
func (e DeleteNoteRequestValidationError) Key() bool
Key function returns key value.
func (DeleteNoteRequestValidationError) Reason ¶
func (e DeleteNoteRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteNoteResponse ¶
type DeleteNoteResponse struct {
// contains filtered or unexported fields
}
func (*DeleteNoteResponse) Descriptor
deprecated
func (*DeleteNoteResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteNoteResponse.ProtoReflect.Descriptor instead.
func (*DeleteNoteResponse) ProtoMessage ¶
func (*DeleteNoteResponse) ProtoMessage()
func (*DeleteNoteResponse) ProtoReflect ¶
func (x *DeleteNoteResponse) ProtoReflect() protoreflect.Message
func (*DeleteNoteResponse) Reset ¶
func (x *DeleteNoteResponse) Reset()
func (*DeleteNoteResponse) String ¶
func (x *DeleteNoteResponse) String() string
func (*DeleteNoteResponse) Validate ¶
func (m *DeleteNoteResponse) Validate() error
Validate checks the field values on DeleteNoteResponse 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 (*DeleteNoteResponse) ValidateAll ¶
func (m *DeleteNoteResponse) ValidateAll() error
ValidateAll checks the field values on DeleteNoteResponse 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 DeleteNoteResponseMultiError, or nil if none found.
type DeleteNoteResponseMultiError ¶
type DeleteNoteResponseMultiError []error
DeleteNoteResponseMultiError is an error wrapping multiple validation errors returned by DeleteNoteResponse.ValidateAll() if the designated constraints aren't met.
func (DeleteNoteResponseMultiError) AllErrors ¶
func (m DeleteNoteResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteNoteResponseMultiError) Error ¶
func (m DeleteNoteResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteNoteResponseValidationError ¶
type DeleteNoteResponseValidationError struct {
// contains filtered or unexported fields
}
DeleteNoteResponseValidationError is the validation error returned by DeleteNoteResponse.Validate if the designated constraints aren't met.
func (DeleteNoteResponseValidationError) Cause ¶
func (e DeleteNoteResponseValidationError) Cause() error
Cause function returns cause value.
func (DeleteNoteResponseValidationError) Error ¶
func (e DeleteNoteResponseValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteNoteResponseValidationError) ErrorName ¶
func (e DeleteNoteResponseValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteNoteResponseValidationError) Field ¶
func (e DeleteNoteResponseValidationError) Field() string
Field function returns field value.
func (DeleteNoteResponseValidationError) Key ¶
func (e DeleteNoteResponseValidationError) Key() bool
Key function returns key value.
func (DeleteNoteResponseValidationError) Reason ¶
func (e DeleteNoteResponseValidationError) Reason() string
Reason function returns reason value.
type GetNoteRequest ¶
type GetNoteRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetNoteRequest) Descriptor
deprecated
func (*GetNoteRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetNoteRequest.ProtoReflect.Descriptor instead.
func (*GetNoteRequest) GetId ¶
func (x *GetNoteRequest) GetId() string
func (*GetNoteRequest) ProtoMessage ¶
func (*GetNoteRequest) ProtoMessage()
func (*GetNoteRequest) ProtoReflect ¶
func (x *GetNoteRequest) ProtoReflect() protoreflect.Message
func (*GetNoteRequest) Reset ¶
func (x *GetNoteRequest) Reset()
func (*GetNoteRequest) String ¶
func (x *GetNoteRequest) String() string
func (*GetNoteRequest) Validate ¶
func (m *GetNoteRequest) Validate() error
Validate checks the field values on GetNoteRequest 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 (*GetNoteRequest) ValidateAll ¶
func (m *GetNoteRequest) ValidateAll() error
ValidateAll checks the field values on GetNoteRequest 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 GetNoteRequestMultiError, or nil if none found.
type GetNoteRequestMultiError ¶
type GetNoteRequestMultiError []error
GetNoteRequestMultiError is an error wrapping multiple validation errors returned by GetNoteRequest.ValidateAll() if the designated constraints aren't met.
func (GetNoteRequestMultiError) AllErrors ¶
func (m GetNoteRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetNoteRequestMultiError) Error ¶
func (m GetNoteRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetNoteRequestValidationError ¶
type GetNoteRequestValidationError struct {
// contains filtered or unexported fields
}
GetNoteRequestValidationError is the validation error returned by GetNoteRequest.Validate if the designated constraints aren't met.
func (GetNoteRequestValidationError) Cause ¶
func (e GetNoteRequestValidationError) Cause() error
Cause function returns cause value.
func (GetNoteRequestValidationError) Error ¶
func (e GetNoteRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetNoteRequestValidationError) ErrorName ¶
func (e GetNoteRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetNoteRequestValidationError) Field ¶
func (e GetNoteRequestValidationError) Field() string
Field function returns field value.
func (GetNoteRequestValidationError) Key ¶
func (e GetNoteRequestValidationError) Key() bool
Key function returns key value.
func (GetNoteRequestValidationError) Reason ¶
func (e GetNoteRequestValidationError) Reason() string
Reason function returns reason value.
type GetNoteResponse ¶
type GetNoteResponse struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` UserId string `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` Priority *string `protobuf:"bytes,5,opt,name=priority,proto3,oneof" json:"priority,omitempty"` CompletionTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=completion_time,json=completionTime,proto3,oneof" json:"completion_time,omitempty"` // contains filtered or unexported fields }
func (*GetNoteResponse) Descriptor
deprecated
func (*GetNoteResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetNoteResponse.ProtoReflect.Descriptor instead.
func (*GetNoteResponse) GetCompletionTime ¶
func (x *GetNoteResponse) GetCompletionTime() *timestamppb.Timestamp
func (*GetNoteResponse) GetContent ¶
func (x *GetNoteResponse) GetContent() string
func (*GetNoteResponse) GetCreatedAt ¶
func (x *GetNoteResponse) GetCreatedAt() *timestamppb.Timestamp
func (*GetNoteResponse) GetPriority ¶
func (x *GetNoteResponse) GetPriority() string
func (*GetNoteResponse) GetTitle ¶
func (x *GetNoteResponse) GetTitle() string
func (*GetNoteResponse) GetUserId ¶
func (x *GetNoteResponse) GetUserId() string
func (*GetNoteResponse) ProtoMessage ¶
func (*GetNoteResponse) ProtoMessage()
func (*GetNoteResponse) ProtoReflect ¶
func (x *GetNoteResponse) ProtoReflect() protoreflect.Message
func (*GetNoteResponse) Reset ¶
func (x *GetNoteResponse) Reset()
func (*GetNoteResponse) String ¶
func (x *GetNoteResponse) String() string
func (*GetNoteResponse) Validate ¶
func (m *GetNoteResponse) Validate() error
Validate checks the field values on GetNoteResponse 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 (*GetNoteResponse) ValidateAll ¶
func (m *GetNoteResponse) ValidateAll() error
ValidateAll checks the field values on GetNoteResponse 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 GetNoteResponseMultiError, or nil if none found.
type GetNoteResponseMultiError ¶
type GetNoteResponseMultiError []error
GetNoteResponseMultiError is an error wrapping multiple validation errors returned by GetNoteResponse.ValidateAll() if the designated constraints aren't met.
func (GetNoteResponseMultiError) AllErrors ¶
func (m GetNoteResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetNoteResponseMultiError) Error ¶
func (m GetNoteResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetNoteResponseValidationError ¶
type GetNoteResponseValidationError struct {
// contains filtered or unexported fields
}
GetNoteResponseValidationError is the validation error returned by GetNoteResponse.Validate if the designated constraints aren't met.
func (GetNoteResponseValidationError) Cause ¶
func (e GetNoteResponseValidationError) Cause() error
Cause function returns cause value.
func (GetNoteResponseValidationError) Error ¶
func (e GetNoteResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetNoteResponseValidationError) ErrorName ¶
func (e GetNoteResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetNoteResponseValidationError) Field ¶
func (e GetNoteResponseValidationError) Field() string
Field function returns field value.
func (GetNoteResponseValidationError) Key ¶
func (e GetNoteResponseValidationError) Key() bool
Key function returns key value.
func (GetNoteResponseValidationError) Reason ¶
func (e GetNoteResponseValidationError) Reason() string
Reason function returns reason value.
type GetNotesRequest ¶
type GetNotesRequest struct {
// contains filtered or unexported fields
}
func (*GetNotesRequest) Descriptor
deprecated
func (*GetNotesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetNotesRequest.ProtoReflect.Descriptor instead.
func (*GetNotesRequest) ProtoMessage ¶
func (*GetNotesRequest) ProtoMessage()
func (*GetNotesRequest) ProtoReflect ¶
func (x *GetNotesRequest) ProtoReflect() protoreflect.Message
func (*GetNotesRequest) Reset ¶
func (x *GetNotesRequest) Reset()
func (*GetNotesRequest) String ¶
func (x *GetNotesRequest) String() string
func (*GetNotesRequest) Validate ¶
func (m *GetNotesRequest) Validate() error
Validate checks the field values on GetNotesRequest 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 (*GetNotesRequest) ValidateAll ¶
func (m *GetNotesRequest) ValidateAll() error
ValidateAll checks the field values on GetNotesRequest 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 GetNotesRequestMultiError, or nil if none found.
type GetNotesRequestMultiError ¶
type GetNotesRequestMultiError []error
GetNotesRequestMultiError is an error wrapping multiple validation errors returned by GetNotesRequest.ValidateAll() if the designated constraints aren't met.
func (GetNotesRequestMultiError) AllErrors ¶
func (m GetNotesRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetNotesRequestMultiError) Error ¶
func (m GetNotesRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetNotesRequestValidationError ¶
type GetNotesRequestValidationError struct {
// contains filtered or unexported fields
}
GetNotesRequestValidationError is the validation error returned by GetNotesRequest.Validate if the designated constraints aren't met.
func (GetNotesRequestValidationError) Cause ¶
func (e GetNotesRequestValidationError) Cause() error
Cause function returns cause value.
func (GetNotesRequestValidationError) Error ¶
func (e GetNotesRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetNotesRequestValidationError) ErrorName ¶
func (e GetNotesRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetNotesRequestValidationError) Field ¶
func (e GetNotesRequestValidationError) Field() string
Field function returns field value.
func (GetNotesRequestValidationError) Key ¶
func (e GetNotesRequestValidationError) Key() bool
Key function returns key value.
func (GetNotesRequestValidationError) Reason ¶
func (e GetNotesRequestValidationError) Reason() string
Reason function returns reason value.
type GetNotesResponse ¶
type GetNotesResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` Priority *string `protobuf:"bytes,5,opt,name=priority,proto3,oneof" json:"priority,omitempty"` CompletionTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=completion_time,json=completionTime,proto3,oneof" json:"completion_time,omitempty"` // contains filtered or unexported fields }
func (*GetNotesResponse) Descriptor
deprecated
func (*GetNotesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetNotesResponse.ProtoReflect.Descriptor instead.
func (*GetNotesResponse) GetCompletionTime ¶
func (x *GetNotesResponse) GetCompletionTime() *timestamppb.Timestamp
func (*GetNotesResponse) GetContent ¶
func (x *GetNotesResponse) GetContent() string
func (*GetNotesResponse) GetCreatedAt ¶
func (x *GetNotesResponse) GetCreatedAt() *timestamppb.Timestamp
func (*GetNotesResponse) GetId ¶
func (x *GetNotesResponse) GetId() string
func (*GetNotesResponse) GetPriority ¶
func (x *GetNotesResponse) GetPriority() string
func (*GetNotesResponse) GetTitle ¶
func (x *GetNotesResponse) GetTitle() string
func (*GetNotesResponse) ProtoMessage ¶
func (*GetNotesResponse) ProtoMessage()
func (*GetNotesResponse) ProtoReflect ¶
func (x *GetNotesResponse) ProtoReflect() protoreflect.Message
func (*GetNotesResponse) Reset ¶
func (x *GetNotesResponse) Reset()
func (*GetNotesResponse) String ¶
func (x *GetNotesResponse) String() string
func (*GetNotesResponse) Validate ¶
func (m *GetNotesResponse) Validate() error
Validate checks the field values on GetNotesResponse 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 (*GetNotesResponse) ValidateAll ¶
func (m *GetNotesResponse) ValidateAll() error
ValidateAll checks the field values on GetNotesResponse 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 GetNotesResponseMultiError, or nil if none found.
type GetNotesResponseMultiError ¶
type GetNotesResponseMultiError []error
GetNotesResponseMultiError is an error wrapping multiple validation errors returned by GetNotesResponse.ValidateAll() if the designated constraints aren't met.
func (GetNotesResponseMultiError) AllErrors ¶
func (m GetNotesResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetNotesResponseMultiError) Error ¶
func (m GetNotesResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetNotesResponseValidationError ¶
type GetNotesResponseValidationError struct {
// contains filtered or unexported fields
}
GetNotesResponseValidationError is the validation error returned by GetNotesResponse.Validate if the designated constraints aren't met.
func (GetNotesResponseValidationError) Cause ¶
func (e GetNotesResponseValidationError) Cause() error
Cause function returns cause value.
func (GetNotesResponseValidationError) Error ¶
func (e GetNotesResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetNotesResponseValidationError) ErrorName ¶
func (e GetNotesResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetNotesResponseValidationError) Field ¶
func (e GetNotesResponseValidationError) Field() string
Field function returns field value.
func (GetNotesResponseValidationError) Key ¶
func (e GetNotesResponseValidationError) Key() bool
Key function returns key value.
func (GetNotesResponseValidationError) Reason ¶
func (e GetNotesResponseValidationError) Reason() string
Reason function returns reason value.
type NoteServiceClient ¶
type NoteServiceClient interface { CreateNote(ctx context.Context, in *CreateNoteRequest, opts ...grpc.CallOption) (*CreateNoteResponse, error) GetNote(ctx context.Context, in *GetNoteRequest, opts ...grpc.CallOption) (*GetNoteResponse, error) GetNotes(ctx context.Context, in *GetNotesRequest, opts ...grpc.CallOption) (NoteService_GetNotesClient, error) UpdateNote(ctx context.Context, in *UpdateNoteRequest, opts ...grpc.CallOption) (*UpdateNoteResponse, error) DeleteNote(ctx context.Context, in *DeleteNoteRequest, opts ...grpc.CallOption) (*DeleteNoteResponse, error) }
NoteServiceClient is the client API for NoteService 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 NewNoteServiceClient ¶
func NewNoteServiceClient(cc grpc.ClientConnInterface) NoteServiceClient
type NoteServiceServer ¶
type NoteServiceServer interface { CreateNote(context.Context, *CreateNoteRequest) (*CreateNoteResponse, error) GetNote(context.Context, *GetNoteRequest) (*GetNoteResponse, error) GetNotes(*GetNotesRequest, NoteService_GetNotesServer) error UpdateNote(context.Context, *UpdateNoteRequest) (*UpdateNoteResponse, error) DeleteNote(context.Context, *DeleteNoteRequest) (*DeleteNoteResponse, error) // contains filtered or unexported methods }
NoteServiceServer is the server API for NoteService service. All implementations must embed UnimplementedNoteServiceServer for forward compatibility
type NoteService_GetNotesClient ¶
type NoteService_GetNotesClient interface { Recv() (*GetNotesResponse, error) grpc.ClientStream }
type NoteService_GetNotesServer ¶
type NoteService_GetNotesServer interface { Send(*GetNotesResponse) error grpc.ServerStream }
type UnimplementedNoteServiceServer ¶
type UnimplementedNoteServiceServer struct { }
UnimplementedNoteServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedNoteServiceServer) CreateNote ¶
func (UnimplementedNoteServiceServer) CreateNote(context.Context, *CreateNoteRequest) (*CreateNoteResponse, error)
func (UnimplementedNoteServiceServer) DeleteNote ¶
func (UnimplementedNoteServiceServer) DeleteNote(context.Context, *DeleteNoteRequest) (*DeleteNoteResponse, error)
func (UnimplementedNoteServiceServer) GetNote ¶
func (UnimplementedNoteServiceServer) GetNote(context.Context, *GetNoteRequest) (*GetNoteResponse, error)
func (UnimplementedNoteServiceServer) GetNotes ¶
func (UnimplementedNoteServiceServer) GetNotes(*GetNotesRequest, NoteService_GetNotesServer) error
func (UnimplementedNoteServiceServer) UpdateNote ¶
func (UnimplementedNoteServiceServer) UpdateNote(context.Context, *UpdateNoteRequest) (*UpdateNoteResponse, error)
type UnsafeNoteServiceServer ¶
type UnsafeNoteServiceServer interface {
// contains filtered or unexported methods
}
UnsafeNoteServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NoteServiceServer will result in compilation errors.
type UpdateNoteRequest ¶
type UpdateNoteRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` NewTitle string `protobuf:"bytes,2,opt,name=new_title,json=newTitle,proto3" json:"new_title,omitempty"` NewContent string `protobuf:"bytes,3,opt,name=new_content,json=newContent,proto3" json:"new_content,omitempty"` NewPriority *string `protobuf:"bytes,5,opt,name=new_priority,json=newPriority,proto3,oneof" json:"new_priority,omitempty"` NewCompletionTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=new_completion_time,json=newCompletionTime,proto3,oneof" json:"new_completion_time,omitempty"` // contains filtered or unexported fields }
func (*UpdateNoteRequest) Descriptor
deprecated
func (*UpdateNoteRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateNoteRequest.ProtoReflect.Descriptor instead.
func (*UpdateNoteRequest) GetId ¶
func (x *UpdateNoteRequest) GetId() string
func (*UpdateNoteRequest) GetNewCompletionTime ¶
func (x *UpdateNoteRequest) GetNewCompletionTime() *timestamppb.Timestamp
func (*UpdateNoteRequest) GetNewContent ¶
func (x *UpdateNoteRequest) GetNewContent() string
func (*UpdateNoteRequest) GetNewPriority ¶
func (x *UpdateNoteRequest) GetNewPriority() string
func (*UpdateNoteRequest) GetNewTitle ¶
func (x *UpdateNoteRequest) GetNewTitle() string
func (*UpdateNoteRequest) ProtoMessage ¶
func (*UpdateNoteRequest) ProtoMessage()
func (*UpdateNoteRequest) ProtoReflect ¶
func (x *UpdateNoteRequest) ProtoReflect() protoreflect.Message
func (*UpdateNoteRequest) Reset ¶
func (x *UpdateNoteRequest) Reset()
func (*UpdateNoteRequest) String ¶
func (x *UpdateNoteRequest) String() string
func (*UpdateNoteRequest) Validate ¶
func (m *UpdateNoteRequest) Validate() error
Validate checks the field values on UpdateNoteRequest 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 (*UpdateNoteRequest) ValidateAll ¶
func (m *UpdateNoteRequest) ValidateAll() error
ValidateAll checks the field values on UpdateNoteRequest 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 UpdateNoteRequestMultiError, or nil if none found.
type UpdateNoteRequestMultiError ¶
type UpdateNoteRequestMultiError []error
UpdateNoteRequestMultiError is an error wrapping multiple validation errors returned by UpdateNoteRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateNoteRequestMultiError) AllErrors ¶
func (m UpdateNoteRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateNoteRequestMultiError) Error ¶
func (m UpdateNoteRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateNoteRequestValidationError ¶
type UpdateNoteRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateNoteRequestValidationError is the validation error returned by UpdateNoteRequest.Validate if the designated constraints aren't met.
func (UpdateNoteRequestValidationError) Cause ¶
func (e UpdateNoteRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateNoteRequestValidationError) Error ¶
func (e UpdateNoteRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateNoteRequestValidationError) ErrorName ¶
func (e UpdateNoteRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateNoteRequestValidationError) Field ¶
func (e UpdateNoteRequestValidationError) Field() string
Field function returns field value.
func (UpdateNoteRequestValidationError) Key ¶
func (e UpdateNoteRequestValidationError) Key() bool
Key function returns key value.
func (UpdateNoteRequestValidationError) Reason ¶
func (e UpdateNoteRequestValidationError) Reason() string
Reason function returns reason value.
type UpdateNoteResponse ¶
type UpdateNoteResponse struct {
// contains filtered or unexported fields
}
func (*UpdateNoteResponse) Descriptor
deprecated
func (*UpdateNoteResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateNoteResponse.ProtoReflect.Descriptor instead.
func (*UpdateNoteResponse) ProtoMessage ¶
func (*UpdateNoteResponse) ProtoMessage()
func (*UpdateNoteResponse) ProtoReflect ¶
func (x *UpdateNoteResponse) ProtoReflect() protoreflect.Message
func (*UpdateNoteResponse) Reset ¶
func (x *UpdateNoteResponse) Reset()
func (*UpdateNoteResponse) String ¶
func (x *UpdateNoteResponse) String() string
func (*UpdateNoteResponse) Validate ¶
func (m *UpdateNoteResponse) Validate() error
Validate checks the field values on UpdateNoteResponse 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 (*UpdateNoteResponse) ValidateAll ¶
func (m *UpdateNoteResponse) ValidateAll() error
ValidateAll checks the field values on UpdateNoteResponse 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 UpdateNoteResponseMultiError, or nil if none found.
type UpdateNoteResponseMultiError ¶
type UpdateNoteResponseMultiError []error
UpdateNoteResponseMultiError is an error wrapping multiple validation errors returned by UpdateNoteResponse.ValidateAll() if the designated constraints aren't met.
func (UpdateNoteResponseMultiError) AllErrors ¶
func (m UpdateNoteResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateNoteResponseMultiError) Error ¶
func (m UpdateNoteResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateNoteResponseValidationError ¶
type UpdateNoteResponseValidationError struct {
// contains filtered or unexported fields
}
UpdateNoteResponseValidationError is the validation error returned by UpdateNoteResponse.Validate if the designated constraints aren't met.
func (UpdateNoteResponseValidationError) Cause ¶
func (e UpdateNoteResponseValidationError) Cause() error
Cause function returns cause value.
func (UpdateNoteResponseValidationError) Error ¶
func (e UpdateNoteResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateNoteResponseValidationError) ErrorName ¶
func (e UpdateNoteResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateNoteResponseValidationError) Field ¶
func (e UpdateNoteResponseValidationError) Field() string
Field function returns field value.
func (UpdateNoteResponseValidationError) Key ¶
func (e UpdateNoteResponseValidationError) Key() bool
Key function returns key value.
func (UpdateNoteResponseValidationError) Reason ¶
func (e UpdateNoteResponseValidationError) Reason() string
Reason function returns reason value.