Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterWordServiceHTTPServer(s *http.Server, srv WordServiceHTTPServer)
- func RegisterWordServiceServer(s grpc.ServiceRegistrar, srv WordServiceServer)
- type CreateWordReply
- func (*CreateWordReply) Descriptor() ([]byte, []int)deprecated
- func (x *CreateWordReply) GetWord() *Word
- func (*CreateWordReply) ProtoMessage()
- func (x *CreateWordReply) ProtoReflect() protoreflect.Message
- func (x *CreateWordReply) Reset()
- func (x *CreateWordReply) String() string
- func (m *CreateWordReply) Validate() error
- func (m *CreateWordReply) ValidateAll() error
- type CreateWordReplyMultiError
- type CreateWordReplyValidationError
- func (e CreateWordReplyValidationError) Cause() error
- func (e CreateWordReplyValidationError) Error() string
- func (e CreateWordReplyValidationError) ErrorName() string
- func (e CreateWordReplyValidationError) Field() string
- func (e CreateWordReplyValidationError) Key() bool
- func (e CreateWordReplyValidationError) Reason() string
- type CreateWordRequest
- func (*CreateWordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateWordRequest) GetText() string
- func (*CreateWordRequest) ProtoMessage()
- func (x *CreateWordRequest) ProtoReflect() protoreflect.Message
- func (x *CreateWordRequest) Reset()
- func (x *CreateWordRequest) String() string
- func (m *CreateWordRequest) Validate() error
- func (m *CreateWordRequest) ValidateAll() error
- type CreateWordRequestMultiError
- type CreateWordRequestValidationError
- func (e CreateWordRequestValidationError) Cause() error
- func (e CreateWordRequestValidationError) Error() string
- func (e CreateWordRequestValidationError) ErrorName() string
- func (e CreateWordRequestValidationError) Field() string
- func (e CreateWordRequestValidationError) Key() bool
- func (e CreateWordRequestValidationError) Reason() string
- type DeleteWordReply
- func (*DeleteWordReply) Descriptor() ([]byte, []int)deprecated
- func (*DeleteWordReply) ProtoMessage()
- func (x *DeleteWordReply) ProtoReflect() protoreflect.Message
- func (x *DeleteWordReply) Reset()
- func (x *DeleteWordReply) String() string
- func (m *DeleteWordReply) Validate() error
- func (m *DeleteWordReply) ValidateAll() error
- type DeleteWordReplyMultiError
- type DeleteWordReplyValidationError
- func (e DeleteWordReplyValidationError) Cause() error
- func (e DeleteWordReplyValidationError) Error() string
- func (e DeleteWordReplyValidationError) ErrorName() string
- func (e DeleteWordReplyValidationError) Field() string
- func (e DeleteWordReplyValidationError) Key() bool
- func (e DeleteWordReplyValidationError) Reason() string
- type DeleteWordRequest
- func (*DeleteWordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteWordRequest) GetId() int64
- func (*DeleteWordRequest) ProtoMessage()
- func (x *DeleteWordRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteWordRequest) Reset()
- func (x *DeleteWordRequest) String() string
- func (m *DeleteWordRequest) Validate() error
- func (m *DeleteWordRequest) ValidateAll() error
- type DeleteWordRequestMultiError
- type DeleteWordRequestValidationError
- func (e DeleteWordRequestValidationError) Cause() error
- func (e DeleteWordRequestValidationError) Error() string
- func (e DeleteWordRequestValidationError) ErrorName() string
- func (e DeleteWordRequestValidationError) Field() string
- func (e DeleteWordRequestValidationError) Key() bool
- func (e DeleteWordRequestValidationError) Reason() string
- type GetAliyunNlsTokenReply
- func (*GetAliyunNlsTokenReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetAliyunNlsTokenReply) GetToken() string
- func (*GetAliyunNlsTokenReply) ProtoMessage()
- func (x *GetAliyunNlsTokenReply) ProtoReflect() protoreflect.Message
- func (x *GetAliyunNlsTokenReply) Reset()
- func (x *GetAliyunNlsTokenReply) String() string
- func (m *GetAliyunNlsTokenReply) Validate() error
- func (m *GetAliyunNlsTokenReply) ValidateAll() error
- type GetAliyunNlsTokenReplyMultiError
- type GetAliyunNlsTokenReplyValidationError
- func (e GetAliyunNlsTokenReplyValidationError) Cause() error
- func (e GetAliyunNlsTokenReplyValidationError) Error() string
- func (e GetAliyunNlsTokenReplyValidationError) ErrorName() string
- func (e GetAliyunNlsTokenReplyValidationError) Field() string
- func (e GetAliyunNlsTokenReplyValidationError) Key() bool
- func (e GetAliyunNlsTokenReplyValidationError) Reason() string
- type GetAliyunNlsTokenRequest
- func (*GetAliyunNlsTokenRequest) Descriptor() ([]byte, []int)deprecated
- func (*GetAliyunNlsTokenRequest) ProtoMessage()
- func (x *GetAliyunNlsTokenRequest) ProtoReflect() protoreflect.Message
- func (x *GetAliyunNlsTokenRequest) Reset()
- func (x *GetAliyunNlsTokenRequest) String() string
- func (m *GetAliyunNlsTokenRequest) Validate() error
- func (m *GetAliyunNlsTokenRequest) ValidateAll() error
- type GetAliyunNlsTokenRequestMultiError
- type GetAliyunNlsTokenRequestValidationError
- func (e GetAliyunNlsTokenRequestValidationError) Cause() error
- func (e GetAliyunNlsTokenRequestValidationError) Error() string
- func (e GetAliyunNlsTokenRequestValidationError) ErrorName() string
- func (e GetAliyunNlsTokenRequestValidationError) Field() string
- func (e GetAliyunNlsTokenRequestValidationError) Key() bool
- func (e GetAliyunNlsTokenRequestValidationError) Reason() string
- type GetWordReply
- func (*GetWordReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetWordReply) GetWord() *Word
- func (*GetWordReply) ProtoMessage()
- func (x *GetWordReply) ProtoReflect() protoreflect.Message
- func (x *GetWordReply) Reset()
- func (x *GetWordReply) String() string
- func (m *GetWordReply) Validate() error
- func (m *GetWordReply) ValidateAll() error
- type GetWordReplyMultiError
- type GetWordReplyValidationError
- func (e GetWordReplyValidationError) Cause() error
- func (e GetWordReplyValidationError) Error() string
- func (e GetWordReplyValidationError) ErrorName() string
- func (e GetWordReplyValidationError) Field() string
- func (e GetWordReplyValidationError) Key() bool
- func (e GetWordReplyValidationError) Reason() string
- type GetWordRequest
- func (*GetWordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetWordRequest) GetId() int64
- func (*GetWordRequest) ProtoMessage()
- func (x *GetWordRequest) ProtoReflect() protoreflect.Message
- func (x *GetWordRequest) Reset()
- func (x *GetWordRequest) String() string
- func (m *GetWordRequest) Validate() error
- func (m *GetWordRequest) ValidateAll() error
- type GetWordRequestMultiError
- type GetWordRequestValidationError
- func (e GetWordRequestValidationError) Cause() error
- func (e GetWordRequestValidationError) Error() string
- func (e GetWordRequestValidationError) ErrorName() string
- func (e GetWordRequestValidationError) Field() string
- func (e GetWordRequestValidationError) Key() bool
- func (e GetWordRequestValidationError) Reason() string
- type ListWordReply
- func (*ListWordReply) Descriptor() ([]byte, []int)deprecated
- func (x *ListWordReply) GetWords() []*Word
- func (*ListWordReply) ProtoMessage()
- func (x *ListWordReply) ProtoReflect() protoreflect.Message
- func (x *ListWordReply) Reset()
- func (x *ListWordReply) String() string
- func (m *ListWordReply) Validate() error
- func (m *ListWordReply) ValidateAll() error
- type ListWordReplyMultiError
- type ListWordReplyValidationError
- func (e ListWordReplyValidationError) Cause() error
- func (e ListWordReplyValidationError) Error() string
- func (e ListWordReplyValidationError) ErrorName() string
- func (e ListWordReplyValidationError) Field() string
- func (e ListWordReplyValidationError) Key() bool
- func (e ListWordReplyValidationError) Reason() string
- type ListWordRequest
- func (*ListWordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListWordRequest) GetGroup() string
- func (*ListWordRequest) ProtoMessage()
- func (x *ListWordRequest) ProtoReflect() protoreflect.Message
- func (x *ListWordRequest) Reset()
- func (x *ListWordRequest) String() string
- func (m *ListWordRequest) Validate() error
- func (m *ListWordRequest) ValidateAll() error
- type ListWordRequestMultiError
- type ListWordRequestValidationError
- func (e ListWordRequestValidationError) Cause() error
- func (e ListWordRequestValidationError) Error() string
- func (e ListWordRequestValidationError) ErrorName() string
- func (e ListWordRequestValidationError) Field() string
- func (e ListWordRequestValidationError) Key() bool
- func (e ListWordRequestValidationError) Reason() string
- type UnimplementedWordServiceServer
- func (UnimplementedWordServiceServer) CreateWord(context.Context, *CreateWordRequest) (*CreateWordReply, error)
- func (UnimplementedWordServiceServer) DeleteWord(context.Context, *DeleteWordRequest) (*DeleteWordReply, error)
- func (UnimplementedWordServiceServer) GetAliyunNlsToken(context.Context, *GetAliyunNlsTokenRequest) (*GetAliyunNlsTokenReply, error)
- func (UnimplementedWordServiceServer) GetWord(context.Context, *GetWordRequest) (*GetWordReply, error)
- func (UnimplementedWordServiceServer) ListWord(context.Context, *ListWordRequest) (*ListWordReply, error)
- func (UnimplementedWordServiceServer) UpdateWord(context.Context, *UpdateWordRequest) (*UpdateWordReply, error)
- type UnsafeWordServiceServer
- type UpdateWordReply
- func (*UpdateWordReply) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateWordReply) GetWord() *Word
- func (*UpdateWordReply) ProtoMessage()
- func (x *UpdateWordReply) ProtoReflect() protoreflect.Message
- func (x *UpdateWordReply) Reset()
- func (x *UpdateWordReply) String() string
- func (m *UpdateWordReply) Validate() error
- func (m *UpdateWordReply) ValidateAll() error
- type UpdateWordReplyMultiError
- type UpdateWordReplyValidationError
- func (e UpdateWordReplyValidationError) Cause() error
- func (e UpdateWordReplyValidationError) Error() string
- func (e UpdateWordReplyValidationError) ErrorName() string
- func (e UpdateWordReplyValidationError) Field() string
- func (e UpdateWordReplyValidationError) Key() bool
- func (e UpdateWordReplyValidationError) Reason() string
- type UpdateWordRequest
- func (*UpdateWordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateWordRequest) GetId() int64
- func (x *UpdateWordRequest) GetText() string
- func (*UpdateWordRequest) ProtoMessage()
- func (x *UpdateWordRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateWordRequest) Reset()
- func (x *UpdateWordRequest) String() string
- func (m *UpdateWordRequest) Validate() error
- func (m *UpdateWordRequest) ValidateAll() error
- type UpdateWordRequestMultiError
- type UpdateWordRequestValidationError
- func (e UpdateWordRequestValidationError) Cause() error
- func (e UpdateWordRequestValidationError) Error() string
- func (e UpdateWordRequestValidationError) ErrorName() string
- func (e UpdateWordRequestValidationError) Field() string
- func (e UpdateWordRequestValidationError) Key() bool
- func (e UpdateWordRequestValidationError) Reason() string
- type Word
- func (*Word) Descriptor() ([]byte, []int)deprecated
- func (x *Word) GetId() int64
- func (x *Word) GetText() string
- func (*Word) ProtoMessage()
- func (x *Word) ProtoReflect() protoreflect.Message
- func (x *Word) Reset()
- func (x *Word) String() string
- func (m *Word) Validate() error
- func (m *Word) ValidateAll() error
- type WordMultiError
- type WordServiceClient
- type WordServiceHTTPClient
- type WordServiceHTTPClientImpl
- func (c *WordServiceHTTPClientImpl) CreateWord(ctx context.Context, in *CreateWordRequest, opts ...http.CallOption) (*CreateWordReply, error)
- func (c *WordServiceHTTPClientImpl) DeleteWord(ctx context.Context, in *DeleteWordRequest, opts ...http.CallOption) (*DeleteWordReply, error)
- func (c *WordServiceHTTPClientImpl) GetAliyunNlsToken(ctx context.Context, in *GetAliyunNlsTokenRequest, opts ...http.CallOption) (*GetAliyunNlsTokenReply, error)
- func (c *WordServiceHTTPClientImpl) GetWord(ctx context.Context, in *GetWordRequest, opts ...http.CallOption) (*GetWordReply, error)
- func (c *WordServiceHTTPClientImpl) ListWord(ctx context.Context, in *ListWordRequest, opts ...http.CallOption) (*ListWordReply, error)
- func (c *WordServiceHTTPClientImpl) UpdateWord(ctx context.Context, in *UpdateWordRequest, opts ...http.CallOption) (*UpdateWordReply, error)
- type WordServiceHTTPServer
- type WordServiceServer
- type WordValidationError
Constants ¶
const ( WordService_CreateWord_FullMethodName = "/api.abc.v1.WordService/CreateWord" WordService_UpdateWord_FullMethodName = "/api.abc.v1.WordService/UpdateWord" WordService_DeleteWord_FullMethodName = "/api.abc.v1.WordService/DeleteWord" WordService_GetWord_FullMethodName = "/api.abc.v1.WordService/GetWord" WordService_ListWord_FullMethodName = "/api.abc.v1.WordService/ListWord" WordService_GetAliyunNlsToken_FullMethodName = "/api.abc.v1.WordService/GetAliyunNlsToken" )
const OperationWordServiceCreateWord = "/api.abc.v1.WordService/CreateWord"
const OperationWordServiceDeleteWord = "/api.abc.v1.WordService/DeleteWord"
const OperationWordServiceGetAliyunNlsToken = "/api.abc.v1.WordService/GetAliyunNlsToken"
const OperationWordServiceGetWord = "/api.abc.v1.WordService/GetWord"
const OperationWordServiceListWord = "/api.abc.v1.WordService/ListWord"
const OperationWordServiceUpdateWord = "/api.abc.v1.WordService/UpdateWord"
Variables ¶
var File_abc_v1_word_proto protoreflect.FileDescriptor
var WordService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.abc.v1.WordService", HandlerType: (*WordServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateWord", Handler: _WordService_CreateWord_Handler, }, { MethodName: "UpdateWord", Handler: _WordService_UpdateWord_Handler, }, { MethodName: "DeleteWord", Handler: _WordService_DeleteWord_Handler, }, { MethodName: "GetWord", Handler: _WordService_GetWord_Handler, }, { MethodName: "ListWord", Handler: _WordService_ListWord_Handler, }, { MethodName: "GetAliyunNlsToken", Handler: _WordService_GetAliyunNlsToken_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "abc/v1/word.proto", }
WordService_ServiceDesc is the grpc.ServiceDesc for WordService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterWordServiceHTTPServer ¶
func RegisterWordServiceHTTPServer(s *http.Server, srv WordServiceHTTPServer)
func RegisterWordServiceServer ¶
func RegisterWordServiceServer(s grpc.ServiceRegistrar, srv WordServiceServer)
Types ¶
type CreateWordReply ¶
type CreateWordReply struct {
Word *Word `protobuf:"bytes,1,opt,name=word,proto3" json:"word,omitempty"`
// contains filtered or unexported fields
}
func (*CreateWordReply) Descriptor
deprecated
func (*CreateWordReply) Descriptor() ([]byte, []int)
Deprecated: Use CreateWordReply.ProtoReflect.Descriptor instead.
func (*CreateWordReply) GetWord ¶
func (x *CreateWordReply) GetWord() *Word
func (*CreateWordReply) ProtoMessage ¶
func (*CreateWordReply) ProtoMessage()
func (*CreateWordReply) ProtoReflect ¶
func (x *CreateWordReply) ProtoReflect() protoreflect.Message
func (*CreateWordReply) Reset ¶
func (x *CreateWordReply) Reset()
func (*CreateWordReply) String ¶
func (x *CreateWordReply) String() string
func (*CreateWordReply) Validate ¶
func (m *CreateWordReply) Validate() error
Validate checks the field values on CreateWordReply 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 (*CreateWordReply) ValidateAll ¶
func (m *CreateWordReply) ValidateAll() error
ValidateAll checks the field values on CreateWordReply 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 CreateWordReplyMultiError, or nil if none found.
type CreateWordReplyMultiError ¶
type CreateWordReplyMultiError []error
CreateWordReplyMultiError is an error wrapping multiple validation errors returned by CreateWordReply.ValidateAll() if the designated constraints aren't met.
func (CreateWordReplyMultiError) AllErrors ¶
func (m CreateWordReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateWordReplyMultiError) Error ¶
func (m CreateWordReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateWordReplyValidationError ¶
type CreateWordReplyValidationError struct {
// contains filtered or unexported fields
}
CreateWordReplyValidationError is the validation error returned by CreateWordReply.Validate if the designated constraints aren't met.
func (CreateWordReplyValidationError) Cause ¶
func (e CreateWordReplyValidationError) Cause() error
Cause function returns cause value.
func (CreateWordReplyValidationError) Error ¶
func (e CreateWordReplyValidationError) Error() string
Error satisfies the builtin error interface
func (CreateWordReplyValidationError) ErrorName ¶
func (e CreateWordReplyValidationError) ErrorName() string
ErrorName returns error name.
func (CreateWordReplyValidationError) Field ¶
func (e CreateWordReplyValidationError) Field() string
Field function returns field value.
func (CreateWordReplyValidationError) Key ¶
func (e CreateWordReplyValidationError) Key() bool
Key function returns key value.
func (CreateWordReplyValidationError) Reason ¶
func (e CreateWordReplyValidationError) Reason() string
Reason function returns reason value.
type CreateWordRequest ¶
type CreateWordRequest struct {
Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
// contains filtered or unexported fields
}
func (*CreateWordRequest) Descriptor
deprecated
func (*CreateWordRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateWordRequest.ProtoReflect.Descriptor instead.
func (*CreateWordRequest) GetText ¶
func (x *CreateWordRequest) GetText() string
func (*CreateWordRequest) ProtoMessage ¶
func (*CreateWordRequest) ProtoMessage()
func (*CreateWordRequest) ProtoReflect ¶
func (x *CreateWordRequest) ProtoReflect() protoreflect.Message
func (*CreateWordRequest) Reset ¶
func (x *CreateWordRequest) Reset()
func (*CreateWordRequest) String ¶
func (x *CreateWordRequest) String() string
func (*CreateWordRequest) Validate ¶
func (m *CreateWordRequest) Validate() error
Validate checks the field values on CreateWordRequest 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 (*CreateWordRequest) ValidateAll ¶
func (m *CreateWordRequest) ValidateAll() error
ValidateAll checks the field values on CreateWordRequest 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 CreateWordRequestMultiError, or nil if none found.
type CreateWordRequestMultiError ¶
type CreateWordRequestMultiError []error
CreateWordRequestMultiError is an error wrapping multiple validation errors returned by CreateWordRequest.ValidateAll() if the designated constraints aren't met.
func (CreateWordRequestMultiError) AllErrors ¶
func (m CreateWordRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateWordRequestMultiError) Error ¶
func (m CreateWordRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateWordRequestValidationError ¶
type CreateWordRequestValidationError struct {
// contains filtered or unexported fields
}
CreateWordRequestValidationError is the validation error returned by CreateWordRequest.Validate if the designated constraints aren't met.
func (CreateWordRequestValidationError) Cause ¶
func (e CreateWordRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateWordRequestValidationError) Error ¶
func (e CreateWordRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateWordRequestValidationError) ErrorName ¶
func (e CreateWordRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateWordRequestValidationError) Field ¶
func (e CreateWordRequestValidationError) Field() string
Field function returns field value.
func (CreateWordRequestValidationError) Key ¶
func (e CreateWordRequestValidationError) Key() bool
Key function returns key value.
func (CreateWordRequestValidationError) Reason ¶
func (e CreateWordRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteWordReply ¶
type DeleteWordReply struct {
// contains filtered or unexported fields
}
func (*DeleteWordReply) Descriptor
deprecated
func (*DeleteWordReply) Descriptor() ([]byte, []int)
Deprecated: Use DeleteWordReply.ProtoReflect.Descriptor instead.
func (*DeleteWordReply) ProtoMessage ¶
func (*DeleteWordReply) ProtoMessage()
func (*DeleteWordReply) ProtoReflect ¶
func (x *DeleteWordReply) ProtoReflect() protoreflect.Message
func (*DeleteWordReply) Reset ¶
func (x *DeleteWordReply) Reset()
func (*DeleteWordReply) String ¶
func (x *DeleteWordReply) String() string
func (*DeleteWordReply) Validate ¶
func (m *DeleteWordReply) Validate() error
Validate checks the field values on DeleteWordReply 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 (*DeleteWordReply) ValidateAll ¶
func (m *DeleteWordReply) ValidateAll() error
ValidateAll checks the field values on DeleteWordReply 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 DeleteWordReplyMultiError, or nil if none found.
type DeleteWordReplyMultiError ¶
type DeleteWordReplyMultiError []error
DeleteWordReplyMultiError is an error wrapping multiple validation errors returned by DeleteWordReply.ValidateAll() if the designated constraints aren't met.
func (DeleteWordReplyMultiError) AllErrors ¶
func (m DeleteWordReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteWordReplyMultiError) Error ¶
func (m DeleteWordReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteWordReplyValidationError ¶
type DeleteWordReplyValidationError struct {
// contains filtered or unexported fields
}
DeleteWordReplyValidationError is the validation error returned by DeleteWordReply.Validate if the designated constraints aren't met.
func (DeleteWordReplyValidationError) Cause ¶
func (e DeleteWordReplyValidationError) Cause() error
Cause function returns cause value.
func (DeleteWordReplyValidationError) Error ¶
func (e DeleteWordReplyValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteWordReplyValidationError) ErrorName ¶
func (e DeleteWordReplyValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteWordReplyValidationError) Field ¶
func (e DeleteWordReplyValidationError) Field() string
Field function returns field value.
func (DeleteWordReplyValidationError) Key ¶
func (e DeleteWordReplyValidationError) Key() bool
Key function returns key value.
func (DeleteWordReplyValidationError) Reason ¶
func (e DeleteWordReplyValidationError) Reason() string
Reason function returns reason value.
type DeleteWordRequest ¶
type DeleteWordRequest struct {
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*DeleteWordRequest) Descriptor
deprecated
func (*DeleteWordRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteWordRequest.ProtoReflect.Descriptor instead.
func (*DeleteWordRequest) GetId ¶
func (x *DeleteWordRequest) GetId() int64
func (*DeleteWordRequest) ProtoMessage ¶
func (*DeleteWordRequest) ProtoMessage()
func (*DeleteWordRequest) ProtoReflect ¶
func (x *DeleteWordRequest) ProtoReflect() protoreflect.Message
func (*DeleteWordRequest) Reset ¶
func (x *DeleteWordRequest) Reset()
func (*DeleteWordRequest) String ¶
func (x *DeleteWordRequest) String() string
func (*DeleteWordRequest) Validate ¶
func (m *DeleteWordRequest) Validate() error
Validate checks the field values on DeleteWordRequest 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 (*DeleteWordRequest) ValidateAll ¶
func (m *DeleteWordRequest) ValidateAll() error
ValidateAll checks the field values on DeleteWordRequest 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 DeleteWordRequestMultiError, or nil if none found.
type DeleteWordRequestMultiError ¶
type DeleteWordRequestMultiError []error
DeleteWordRequestMultiError is an error wrapping multiple validation errors returned by DeleteWordRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteWordRequestMultiError) AllErrors ¶
func (m DeleteWordRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteWordRequestMultiError) Error ¶
func (m DeleteWordRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteWordRequestValidationError ¶
type DeleteWordRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteWordRequestValidationError is the validation error returned by DeleteWordRequest.Validate if the designated constraints aren't met.
func (DeleteWordRequestValidationError) Cause ¶
func (e DeleteWordRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteWordRequestValidationError) Error ¶
func (e DeleteWordRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteWordRequestValidationError) ErrorName ¶
func (e DeleteWordRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteWordRequestValidationError) Field ¶
func (e DeleteWordRequestValidationError) Field() string
Field function returns field value.
func (DeleteWordRequestValidationError) Key ¶
func (e DeleteWordRequestValidationError) Key() bool
Key function returns key value.
func (DeleteWordRequestValidationError) Reason ¶
func (e DeleteWordRequestValidationError) Reason() string
Reason function returns reason value.
type GetAliyunNlsTokenReply ¶
type GetAliyunNlsTokenReply struct {
Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
// contains filtered or unexported fields
}
func (*GetAliyunNlsTokenReply) Descriptor
deprecated
func (*GetAliyunNlsTokenReply) Descriptor() ([]byte, []int)
Deprecated: Use GetAliyunNlsTokenReply.ProtoReflect.Descriptor instead.
func (*GetAliyunNlsTokenReply) GetToken ¶
func (x *GetAliyunNlsTokenReply) GetToken() string
func (*GetAliyunNlsTokenReply) ProtoMessage ¶
func (*GetAliyunNlsTokenReply) ProtoMessage()
func (*GetAliyunNlsTokenReply) ProtoReflect ¶
func (x *GetAliyunNlsTokenReply) ProtoReflect() protoreflect.Message
func (*GetAliyunNlsTokenReply) Reset ¶
func (x *GetAliyunNlsTokenReply) Reset()
func (*GetAliyunNlsTokenReply) String ¶
func (x *GetAliyunNlsTokenReply) String() string
func (*GetAliyunNlsTokenReply) Validate ¶
func (m *GetAliyunNlsTokenReply) Validate() error
Validate checks the field values on GetAliyunNlsTokenReply 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 (*GetAliyunNlsTokenReply) ValidateAll ¶
func (m *GetAliyunNlsTokenReply) ValidateAll() error
ValidateAll checks the field values on GetAliyunNlsTokenReply 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 GetAliyunNlsTokenReplyMultiError, or nil if none found.
type GetAliyunNlsTokenReplyMultiError ¶
type GetAliyunNlsTokenReplyMultiError []error
GetAliyunNlsTokenReplyMultiError is an error wrapping multiple validation errors returned by GetAliyunNlsTokenReply.ValidateAll() if the designated constraints aren't met.
func (GetAliyunNlsTokenReplyMultiError) AllErrors ¶
func (m GetAliyunNlsTokenReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetAliyunNlsTokenReplyMultiError) Error ¶
func (m GetAliyunNlsTokenReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetAliyunNlsTokenReplyValidationError ¶
type GetAliyunNlsTokenReplyValidationError struct {
// contains filtered or unexported fields
}
GetAliyunNlsTokenReplyValidationError is the validation error returned by GetAliyunNlsTokenReply.Validate if the designated constraints aren't met.
func (GetAliyunNlsTokenReplyValidationError) Cause ¶
func (e GetAliyunNlsTokenReplyValidationError) Cause() error
Cause function returns cause value.
func (GetAliyunNlsTokenReplyValidationError) Error ¶
func (e GetAliyunNlsTokenReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetAliyunNlsTokenReplyValidationError) ErrorName ¶
func (e GetAliyunNlsTokenReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetAliyunNlsTokenReplyValidationError) Field ¶
func (e GetAliyunNlsTokenReplyValidationError) Field() string
Field function returns field value.
func (GetAliyunNlsTokenReplyValidationError) Key ¶
func (e GetAliyunNlsTokenReplyValidationError) Key() bool
Key function returns key value.
func (GetAliyunNlsTokenReplyValidationError) Reason ¶
func (e GetAliyunNlsTokenReplyValidationError) Reason() string
Reason function returns reason value.
type GetAliyunNlsTokenRequest ¶
type GetAliyunNlsTokenRequest struct {
// contains filtered or unexported fields
}
func (*GetAliyunNlsTokenRequest) Descriptor
deprecated
func (*GetAliyunNlsTokenRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAliyunNlsTokenRequest.ProtoReflect.Descriptor instead.
func (*GetAliyunNlsTokenRequest) ProtoMessage ¶
func (*GetAliyunNlsTokenRequest) ProtoMessage()
func (*GetAliyunNlsTokenRequest) ProtoReflect ¶
func (x *GetAliyunNlsTokenRequest) ProtoReflect() protoreflect.Message
func (*GetAliyunNlsTokenRequest) Reset ¶
func (x *GetAliyunNlsTokenRequest) Reset()
func (*GetAliyunNlsTokenRequest) String ¶
func (x *GetAliyunNlsTokenRequest) String() string
func (*GetAliyunNlsTokenRequest) Validate ¶
func (m *GetAliyunNlsTokenRequest) Validate() error
Validate checks the field values on GetAliyunNlsTokenRequest 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 (*GetAliyunNlsTokenRequest) ValidateAll ¶
func (m *GetAliyunNlsTokenRequest) ValidateAll() error
ValidateAll checks the field values on GetAliyunNlsTokenRequest 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 GetAliyunNlsTokenRequestMultiError, or nil if none found.
type GetAliyunNlsTokenRequestMultiError ¶
type GetAliyunNlsTokenRequestMultiError []error
GetAliyunNlsTokenRequestMultiError is an error wrapping multiple validation errors returned by GetAliyunNlsTokenRequest.ValidateAll() if the designated constraints aren't met.
func (GetAliyunNlsTokenRequestMultiError) AllErrors ¶
func (m GetAliyunNlsTokenRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetAliyunNlsTokenRequestMultiError) Error ¶
func (m GetAliyunNlsTokenRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetAliyunNlsTokenRequestValidationError ¶
type GetAliyunNlsTokenRequestValidationError struct {
// contains filtered or unexported fields
}
GetAliyunNlsTokenRequestValidationError is the validation error returned by GetAliyunNlsTokenRequest.Validate if the designated constraints aren't met.
func (GetAliyunNlsTokenRequestValidationError) Cause ¶
func (e GetAliyunNlsTokenRequestValidationError) Cause() error
Cause function returns cause value.
func (GetAliyunNlsTokenRequestValidationError) Error ¶
func (e GetAliyunNlsTokenRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetAliyunNlsTokenRequestValidationError) ErrorName ¶
func (e GetAliyunNlsTokenRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetAliyunNlsTokenRequestValidationError) Field ¶
func (e GetAliyunNlsTokenRequestValidationError) Field() string
Field function returns field value.
func (GetAliyunNlsTokenRequestValidationError) Key ¶
func (e GetAliyunNlsTokenRequestValidationError) Key() bool
Key function returns key value.
func (GetAliyunNlsTokenRequestValidationError) Reason ¶
func (e GetAliyunNlsTokenRequestValidationError) Reason() string
Reason function returns reason value.
type GetWordReply ¶
type GetWordReply struct {
Word *Word `protobuf:"bytes,1,opt,name=word,proto3" json:"word,omitempty"`
// contains filtered or unexported fields
}
func (*GetWordReply) Descriptor
deprecated
func (*GetWordReply) Descriptor() ([]byte, []int)
Deprecated: Use GetWordReply.ProtoReflect.Descriptor instead.
func (*GetWordReply) GetWord ¶
func (x *GetWordReply) GetWord() *Word
func (*GetWordReply) ProtoMessage ¶
func (*GetWordReply) ProtoMessage()
func (*GetWordReply) ProtoReflect ¶
func (x *GetWordReply) ProtoReflect() protoreflect.Message
func (*GetWordReply) Reset ¶
func (x *GetWordReply) Reset()
func (*GetWordReply) String ¶
func (x *GetWordReply) String() string
func (*GetWordReply) Validate ¶
func (m *GetWordReply) Validate() error
Validate checks the field values on GetWordReply 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 (*GetWordReply) ValidateAll ¶
func (m *GetWordReply) ValidateAll() error
ValidateAll checks the field values on GetWordReply 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 GetWordReplyMultiError, or nil if none found.
type GetWordReplyMultiError ¶
type GetWordReplyMultiError []error
GetWordReplyMultiError is an error wrapping multiple validation errors returned by GetWordReply.ValidateAll() if the designated constraints aren't met.
func (GetWordReplyMultiError) AllErrors ¶
func (m GetWordReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetWordReplyMultiError) Error ¶
func (m GetWordReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetWordReplyValidationError ¶
type GetWordReplyValidationError struct {
// contains filtered or unexported fields
}
GetWordReplyValidationError is the validation error returned by GetWordReply.Validate if the designated constraints aren't met.
func (GetWordReplyValidationError) Cause ¶
func (e GetWordReplyValidationError) Cause() error
Cause function returns cause value.
func (GetWordReplyValidationError) Error ¶
func (e GetWordReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetWordReplyValidationError) ErrorName ¶
func (e GetWordReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetWordReplyValidationError) Field ¶
func (e GetWordReplyValidationError) Field() string
Field function returns field value.
func (GetWordReplyValidationError) Key ¶
func (e GetWordReplyValidationError) Key() bool
Key function returns key value.
func (GetWordReplyValidationError) Reason ¶
func (e GetWordReplyValidationError) Reason() string
Reason function returns reason value.
type GetWordRequest ¶
type GetWordRequest struct {
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*GetWordRequest) Descriptor
deprecated
func (*GetWordRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetWordRequest.ProtoReflect.Descriptor instead.
func (*GetWordRequest) GetId ¶
func (x *GetWordRequest) GetId() int64
func (*GetWordRequest) ProtoMessage ¶
func (*GetWordRequest) ProtoMessage()
func (*GetWordRequest) ProtoReflect ¶
func (x *GetWordRequest) ProtoReflect() protoreflect.Message
func (*GetWordRequest) Reset ¶
func (x *GetWordRequest) Reset()
func (*GetWordRequest) String ¶
func (x *GetWordRequest) String() string
func (*GetWordRequest) Validate ¶
func (m *GetWordRequest) Validate() error
Validate checks the field values on GetWordRequest 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 (*GetWordRequest) ValidateAll ¶
func (m *GetWordRequest) ValidateAll() error
ValidateAll checks the field values on GetWordRequest 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 GetWordRequestMultiError, or nil if none found.
type GetWordRequestMultiError ¶
type GetWordRequestMultiError []error
GetWordRequestMultiError is an error wrapping multiple validation errors returned by GetWordRequest.ValidateAll() if the designated constraints aren't met.
func (GetWordRequestMultiError) AllErrors ¶
func (m GetWordRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetWordRequestMultiError) Error ¶
func (m GetWordRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetWordRequestValidationError ¶
type GetWordRequestValidationError struct {
// contains filtered or unexported fields
}
GetWordRequestValidationError is the validation error returned by GetWordRequest.Validate if the designated constraints aren't met.
func (GetWordRequestValidationError) Cause ¶
func (e GetWordRequestValidationError) Cause() error
Cause function returns cause value.
func (GetWordRequestValidationError) Error ¶
func (e GetWordRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetWordRequestValidationError) ErrorName ¶
func (e GetWordRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetWordRequestValidationError) Field ¶
func (e GetWordRequestValidationError) Field() string
Field function returns field value.
func (GetWordRequestValidationError) Key ¶
func (e GetWordRequestValidationError) Key() bool
Key function returns key value.
func (GetWordRequestValidationError) Reason ¶
func (e GetWordRequestValidationError) Reason() string
Reason function returns reason value.
type ListWordReply ¶
type ListWordReply struct {
Words []*Word `protobuf:"bytes,1,rep,name=words,proto3" json:"words,omitempty"`
// contains filtered or unexported fields
}
func (*ListWordReply) Descriptor
deprecated
func (*ListWordReply) Descriptor() ([]byte, []int)
Deprecated: Use ListWordReply.ProtoReflect.Descriptor instead.
func (*ListWordReply) GetWords ¶
func (x *ListWordReply) GetWords() []*Word
func (*ListWordReply) ProtoMessage ¶
func (*ListWordReply) ProtoMessage()
func (*ListWordReply) ProtoReflect ¶
func (x *ListWordReply) ProtoReflect() protoreflect.Message
func (*ListWordReply) Reset ¶
func (x *ListWordReply) Reset()
func (*ListWordReply) String ¶
func (x *ListWordReply) String() string
func (*ListWordReply) Validate ¶
func (m *ListWordReply) Validate() error
Validate checks the field values on ListWordReply 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 (*ListWordReply) ValidateAll ¶
func (m *ListWordReply) ValidateAll() error
ValidateAll checks the field values on ListWordReply 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 ListWordReplyMultiError, or nil if none found.
type ListWordReplyMultiError ¶
type ListWordReplyMultiError []error
ListWordReplyMultiError is an error wrapping multiple validation errors returned by ListWordReply.ValidateAll() if the designated constraints aren't met.
func (ListWordReplyMultiError) AllErrors ¶
func (m ListWordReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListWordReplyMultiError) Error ¶
func (m ListWordReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListWordReplyValidationError ¶
type ListWordReplyValidationError struct {
// contains filtered or unexported fields
}
ListWordReplyValidationError is the validation error returned by ListWordReply.Validate if the designated constraints aren't met.
func (ListWordReplyValidationError) Cause ¶
func (e ListWordReplyValidationError) Cause() error
Cause function returns cause value.
func (ListWordReplyValidationError) Error ¶
func (e ListWordReplyValidationError) Error() string
Error satisfies the builtin error interface
func (ListWordReplyValidationError) ErrorName ¶
func (e ListWordReplyValidationError) ErrorName() string
ErrorName returns error name.
func (ListWordReplyValidationError) Field ¶
func (e ListWordReplyValidationError) Field() string
Field function returns field value.
func (ListWordReplyValidationError) Key ¶
func (e ListWordReplyValidationError) Key() bool
Key function returns key value.
func (ListWordReplyValidationError) Reason ¶
func (e ListWordReplyValidationError) Reason() string
Reason function returns reason value.
type ListWordRequest ¶
type ListWordRequest struct {
Group string `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"`
// contains filtered or unexported fields
}
func (*ListWordRequest) Descriptor
deprecated
func (*ListWordRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListWordRequest.ProtoReflect.Descriptor instead.
func (*ListWordRequest) GetGroup ¶
func (x *ListWordRequest) GetGroup() string
func (*ListWordRequest) ProtoMessage ¶
func (*ListWordRequest) ProtoMessage()
func (*ListWordRequest) ProtoReflect ¶
func (x *ListWordRequest) ProtoReflect() protoreflect.Message
func (*ListWordRequest) Reset ¶
func (x *ListWordRequest) Reset()
func (*ListWordRequest) String ¶
func (x *ListWordRequest) String() string
func (*ListWordRequest) Validate ¶
func (m *ListWordRequest) Validate() error
Validate checks the field values on ListWordRequest 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 (*ListWordRequest) ValidateAll ¶
func (m *ListWordRequest) ValidateAll() error
ValidateAll checks the field values on ListWordRequest 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 ListWordRequestMultiError, or nil if none found.
type ListWordRequestMultiError ¶
type ListWordRequestMultiError []error
ListWordRequestMultiError is an error wrapping multiple validation errors returned by ListWordRequest.ValidateAll() if the designated constraints aren't met.
func (ListWordRequestMultiError) AllErrors ¶
func (m ListWordRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListWordRequestMultiError) Error ¶
func (m ListWordRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListWordRequestValidationError ¶
type ListWordRequestValidationError struct {
// contains filtered or unexported fields
}
ListWordRequestValidationError is the validation error returned by ListWordRequest.Validate if the designated constraints aren't met.
func (ListWordRequestValidationError) Cause ¶
func (e ListWordRequestValidationError) Cause() error
Cause function returns cause value.
func (ListWordRequestValidationError) Error ¶
func (e ListWordRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListWordRequestValidationError) ErrorName ¶
func (e ListWordRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListWordRequestValidationError) Field ¶
func (e ListWordRequestValidationError) Field() string
Field function returns field value.
func (ListWordRequestValidationError) Key ¶
func (e ListWordRequestValidationError) Key() bool
Key function returns key value.
func (ListWordRequestValidationError) Reason ¶
func (e ListWordRequestValidationError) Reason() string
Reason function returns reason value.
type UnimplementedWordServiceServer ¶
type UnimplementedWordServiceServer struct{}
UnimplementedWordServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedWordServiceServer) CreateWord ¶
func (UnimplementedWordServiceServer) CreateWord(context.Context, *CreateWordRequest) (*CreateWordReply, error)
func (UnimplementedWordServiceServer) DeleteWord ¶
func (UnimplementedWordServiceServer) DeleteWord(context.Context, *DeleteWordRequest) (*DeleteWordReply, error)
func (UnimplementedWordServiceServer) GetAliyunNlsToken ¶
func (UnimplementedWordServiceServer) GetAliyunNlsToken(context.Context, *GetAliyunNlsTokenRequest) (*GetAliyunNlsTokenReply, error)
func (UnimplementedWordServiceServer) GetWord ¶
func (UnimplementedWordServiceServer) GetWord(context.Context, *GetWordRequest) (*GetWordReply, error)
func (UnimplementedWordServiceServer) ListWord ¶
func (UnimplementedWordServiceServer) ListWord(context.Context, *ListWordRequest) (*ListWordReply, error)
func (UnimplementedWordServiceServer) UpdateWord ¶
func (UnimplementedWordServiceServer) UpdateWord(context.Context, *UpdateWordRequest) (*UpdateWordReply, error)
type UnsafeWordServiceServer ¶
type UnsafeWordServiceServer interface {
// contains filtered or unexported methods
}
UnsafeWordServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to WordServiceServer will result in compilation errors.
type UpdateWordReply ¶
type UpdateWordReply struct {
Word *Word `protobuf:"bytes,1,opt,name=word,proto3" json:"word,omitempty"`
// contains filtered or unexported fields
}
func (*UpdateWordReply) Descriptor
deprecated
func (*UpdateWordReply) Descriptor() ([]byte, []int)
Deprecated: Use UpdateWordReply.ProtoReflect.Descriptor instead.
func (*UpdateWordReply) GetWord ¶
func (x *UpdateWordReply) GetWord() *Word
func (*UpdateWordReply) ProtoMessage ¶
func (*UpdateWordReply) ProtoMessage()
func (*UpdateWordReply) ProtoReflect ¶
func (x *UpdateWordReply) ProtoReflect() protoreflect.Message
func (*UpdateWordReply) Reset ¶
func (x *UpdateWordReply) Reset()
func (*UpdateWordReply) String ¶
func (x *UpdateWordReply) String() string
func (*UpdateWordReply) Validate ¶
func (m *UpdateWordReply) Validate() error
Validate checks the field values on UpdateWordReply 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 (*UpdateWordReply) ValidateAll ¶
func (m *UpdateWordReply) ValidateAll() error
ValidateAll checks the field values on UpdateWordReply 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 UpdateWordReplyMultiError, or nil if none found.
type UpdateWordReplyMultiError ¶
type UpdateWordReplyMultiError []error
UpdateWordReplyMultiError is an error wrapping multiple validation errors returned by UpdateWordReply.ValidateAll() if the designated constraints aren't met.
func (UpdateWordReplyMultiError) AllErrors ¶
func (m UpdateWordReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateWordReplyMultiError) Error ¶
func (m UpdateWordReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateWordReplyValidationError ¶
type UpdateWordReplyValidationError struct {
// contains filtered or unexported fields
}
UpdateWordReplyValidationError is the validation error returned by UpdateWordReply.Validate if the designated constraints aren't met.
func (UpdateWordReplyValidationError) Cause ¶
func (e UpdateWordReplyValidationError) Cause() error
Cause function returns cause value.
func (UpdateWordReplyValidationError) Error ¶
func (e UpdateWordReplyValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateWordReplyValidationError) ErrorName ¶
func (e UpdateWordReplyValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateWordReplyValidationError) Field ¶
func (e UpdateWordReplyValidationError) Field() string
Field function returns field value.
func (UpdateWordReplyValidationError) Key ¶
func (e UpdateWordReplyValidationError) Key() bool
Key function returns key value.
func (UpdateWordReplyValidationError) Reason ¶
func (e UpdateWordReplyValidationError) Reason() string
Reason function returns reason value.
type UpdateWordRequest ¶
type UpdateWordRequest struct {
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
// contains filtered or unexported fields
}
func (*UpdateWordRequest) Descriptor
deprecated
func (*UpdateWordRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateWordRequest.ProtoReflect.Descriptor instead.
func (*UpdateWordRequest) GetId ¶
func (x *UpdateWordRequest) GetId() int64
func (*UpdateWordRequest) GetText ¶
func (x *UpdateWordRequest) GetText() string
func (*UpdateWordRequest) ProtoMessage ¶
func (*UpdateWordRequest) ProtoMessage()
func (*UpdateWordRequest) ProtoReflect ¶
func (x *UpdateWordRequest) ProtoReflect() protoreflect.Message
func (*UpdateWordRequest) Reset ¶
func (x *UpdateWordRequest) Reset()
func (*UpdateWordRequest) String ¶
func (x *UpdateWordRequest) String() string
func (*UpdateWordRequest) Validate ¶
func (m *UpdateWordRequest) Validate() error
Validate checks the field values on UpdateWordRequest 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 (*UpdateWordRequest) ValidateAll ¶
func (m *UpdateWordRequest) ValidateAll() error
ValidateAll checks the field values on UpdateWordRequest 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 UpdateWordRequestMultiError, or nil if none found.
type UpdateWordRequestMultiError ¶
type UpdateWordRequestMultiError []error
UpdateWordRequestMultiError is an error wrapping multiple validation errors returned by UpdateWordRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateWordRequestMultiError) AllErrors ¶
func (m UpdateWordRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateWordRequestMultiError) Error ¶
func (m UpdateWordRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateWordRequestValidationError ¶
type UpdateWordRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateWordRequestValidationError is the validation error returned by UpdateWordRequest.Validate if the designated constraints aren't met.
func (UpdateWordRequestValidationError) Cause ¶
func (e UpdateWordRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateWordRequestValidationError) Error ¶
func (e UpdateWordRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateWordRequestValidationError) ErrorName ¶
func (e UpdateWordRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateWordRequestValidationError) Field ¶
func (e UpdateWordRequestValidationError) Field() string
Field function returns field value.
func (UpdateWordRequestValidationError) Key ¶
func (e UpdateWordRequestValidationError) Key() bool
Key function returns key value.
func (UpdateWordRequestValidationError) Reason ¶
func (e UpdateWordRequestValidationError) Reason() string
Reason function returns reason value.
type Word ¶
type Word struct {
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
// contains filtered or unexported fields
}
func (*Word) Descriptor
deprecated
func (*Word) ProtoMessage ¶
func (*Word) ProtoMessage()
func (*Word) ProtoReflect ¶
func (x *Word) ProtoReflect() protoreflect.Message
func (*Word) Validate ¶
Validate checks the field values on Word 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 (*Word) ValidateAll ¶
ValidateAll checks the field values on Word 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 WordMultiError, or nil if none found.
type WordMultiError ¶
type WordMultiError []error
WordMultiError is an error wrapping multiple validation errors returned by Word.ValidateAll() if the designated constraints aren't met.
func (WordMultiError) AllErrors ¶
func (m WordMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (WordMultiError) Error ¶
func (m WordMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type WordServiceClient ¶
type WordServiceClient interface {
CreateWord(ctx context.Context, in *CreateWordRequest, opts ...grpc.CallOption) (*CreateWordReply, error)
UpdateWord(ctx context.Context, in *UpdateWordRequest, opts ...grpc.CallOption) (*UpdateWordReply, error)
DeleteWord(ctx context.Context, in *DeleteWordRequest, opts ...grpc.CallOption) (*DeleteWordReply, error)
GetWord(ctx context.Context, in *GetWordRequest, opts ...grpc.CallOption) (*GetWordReply, error)
ListWord(ctx context.Context, in *ListWordRequest, opts ...grpc.CallOption) (*ListWordReply, error)
GetAliyunNlsToken(ctx context.Context, in *GetAliyunNlsTokenRequest, opts ...grpc.CallOption) (*GetAliyunNlsTokenReply, error)
}
WordServiceClient is the client API for WordService 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 NewWordServiceClient ¶
func NewWordServiceClient(cc grpc.ClientConnInterface) WordServiceClient
type WordServiceHTTPClient ¶
type WordServiceHTTPClient interface {
CreateWord(ctx context.Context, req *CreateWordRequest, opts ...http.CallOption) (rsp *CreateWordReply, err error)
DeleteWord(ctx context.Context, req *DeleteWordRequest, opts ...http.CallOption) (rsp *DeleteWordReply, err error)
GetAliyunNlsToken(ctx context.Context, req *GetAliyunNlsTokenRequest, opts ...http.CallOption) (rsp *GetAliyunNlsTokenReply, err error)
GetWord(ctx context.Context, req *GetWordRequest, opts ...http.CallOption) (rsp *GetWordReply, err error)
ListWord(ctx context.Context, req *ListWordRequest, opts ...http.CallOption) (rsp *ListWordReply, err error)
UpdateWord(ctx context.Context, req *UpdateWordRequest, opts ...http.CallOption) (rsp *UpdateWordReply, err error)
}
func NewWordServiceHTTPClient ¶
func NewWordServiceHTTPClient(client *http.Client) WordServiceHTTPClient
type WordServiceHTTPClientImpl ¶
type WordServiceHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*WordServiceHTTPClientImpl) CreateWord ¶
func (c *WordServiceHTTPClientImpl) CreateWord(ctx context.Context, in *CreateWordRequest, opts ...http.CallOption) (*CreateWordReply, error)
func (*WordServiceHTTPClientImpl) DeleteWord ¶
func (c *WordServiceHTTPClientImpl) DeleteWord(ctx context.Context, in *DeleteWordRequest, opts ...http.CallOption) (*DeleteWordReply, error)
func (*WordServiceHTTPClientImpl) GetAliyunNlsToken ¶
func (c *WordServiceHTTPClientImpl) GetAliyunNlsToken(ctx context.Context, in *GetAliyunNlsTokenRequest, opts ...http.CallOption) (*GetAliyunNlsTokenReply, error)
func (*WordServiceHTTPClientImpl) GetWord ¶
func (c *WordServiceHTTPClientImpl) GetWord(ctx context.Context, in *GetWordRequest, opts ...http.CallOption) (*GetWordReply, error)
func (*WordServiceHTTPClientImpl) ListWord ¶
func (c *WordServiceHTTPClientImpl) ListWord(ctx context.Context, in *ListWordRequest, opts ...http.CallOption) (*ListWordReply, error)
func (*WordServiceHTTPClientImpl) UpdateWord ¶
func (c *WordServiceHTTPClientImpl) UpdateWord(ctx context.Context, in *UpdateWordRequest, opts ...http.CallOption) (*UpdateWordReply, error)
type WordServiceHTTPServer ¶
type WordServiceHTTPServer interface {
CreateWord(context.Context, *CreateWordRequest) (*CreateWordReply, error)
DeleteWord(context.Context, *DeleteWordRequest) (*DeleteWordReply, error)
GetAliyunNlsToken(context.Context, *GetAliyunNlsTokenRequest) (*GetAliyunNlsTokenReply, error)
GetWord(context.Context, *GetWordRequest) (*GetWordReply, error)
ListWord(context.Context, *ListWordRequest) (*ListWordReply, error)
UpdateWord(context.Context, *UpdateWordRequest) (*UpdateWordReply, error)
}
type WordServiceServer ¶
type WordServiceServer interface {
CreateWord(context.Context, *CreateWordRequest) (*CreateWordReply, error)
UpdateWord(context.Context, *UpdateWordRequest) (*UpdateWordReply, error)
DeleteWord(context.Context, *DeleteWordRequest) (*DeleteWordReply, error)
GetWord(context.Context, *GetWordRequest) (*GetWordReply, error)
ListWord(context.Context, *ListWordRequest) (*ListWordReply, error)
GetAliyunNlsToken(context.Context, *GetAliyunNlsTokenRequest) (*GetAliyunNlsTokenReply, error)
// contains filtered or unexported methods
}
WordServiceServer is the server API for WordService service. All implementations must embed UnimplementedWordServiceServer for forward compatibility.
type WordValidationError ¶
type WordValidationError struct {
// contains filtered or unexported fields
}
WordValidationError is the validation error returned by Word.Validate if the designated constraints aren't met.
func (WordValidationError) Cause ¶
func (e WordValidationError) Cause() error
Cause function returns cause value.
func (WordValidationError) Error ¶
func (e WordValidationError) Error() string
Error satisfies the builtin error interface
func (WordValidationError) ErrorName ¶
func (e WordValidationError) ErrorName() string
ErrorName returns error name.
func (WordValidationError) Field ¶
func (e WordValidationError) Field() string
Field function returns field value.
func (WordValidationError) Key ¶
func (e WordValidationError) Key() bool
Key function returns key value.
func (WordValidationError) Reason ¶
func (e WordValidationError) Reason() string
Reason function returns reason value.