v1

package
v0.0.0-...-2b37b36 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2025 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
const OperationWordServiceCreateWord = "/api.abc.v1.WordService/CreateWord"
View Source
const OperationWordServiceDeleteWord = "/api.abc.v1.WordService/DeleteWord"
View Source
const OperationWordServiceGetAliyunNlsToken = "/api.abc.v1.WordService/GetAliyunNlsToken"
View Source
const OperationWordServiceGetWord = "/api.abc.v1.WordService/GetWord"
View Source
const OperationWordServiceListWord = "/api.abc.v1.WordService/ListWord"
View Source
const OperationWordServiceUpdateWord = "/api.abc.v1.WordService/UpdateWord"

Variables

View Source
var File_abc_v1_word_proto protoreflect.FileDescriptor
View Source
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

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

Cause function returns cause value.

func (CreateWordReplyValidationError) Error

Error satisfies the builtin error interface

func (CreateWordReplyValidationError) ErrorName

func (e CreateWordReplyValidationError) ErrorName() string

ErrorName returns error name.

func (CreateWordReplyValidationError) Field

Field function returns field value.

func (CreateWordReplyValidationError) Key

Key function returns key value.

func (CreateWordReplyValidationError) Reason

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

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

Cause function returns cause value.

func (CreateWordRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateWordRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateWordRequestValidationError) Field

Field function returns field value.

func (CreateWordRequestValidationError) Key

Key function returns key value.

func (CreateWordRequestValidationError) Reason

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

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

Cause function returns cause value.

func (DeleteWordReplyValidationError) Error

Error satisfies the builtin error interface

func (DeleteWordReplyValidationError) ErrorName

func (e DeleteWordReplyValidationError) ErrorName() string

ErrorName returns error name.

func (DeleteWordReplyValidationError) Field

Field function returns field value.

func (DeleteWordReplyValidationError) Key

Key function returns key value.

func (DeleteWordReplyValidationError) Reason

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

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

Cause function returns cause value.

func (DeleteWordRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteWordRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteWordRequestValidationError) Field

Field function returns field value.

func (DeleteWordRequestValidationError) Key

Key function returns key value.

func (DeleteWordRequestValidationError) Reason

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

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

Cause function returns cause value.

func (GetAliyunNlsTokenReplyValidationError) Error

Error satisfies the builtin error interface

func (GetAliyunNlsTokenReplyValidationError) ErrorName

ErrorName returns error name.

func (GetAliyunNlsTokenReplyValidationError) Field

Field function returns field value.

func (GetAliyunNlsTokenReplyValidationError) Key

Key function returns key value.

func (GetAliyunNlsTokenReplyValidationError) Reason

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

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

Cause function returns cause value.

func (GetAliyunNlsTokenRequestValidationError) Error

Error satisfies the builtin error interface

func (GetAliyunNlsTokenRequestValidationError) ErrorName

ErrorName returns error name.

func (GetAliyunNlsTokenRequestValidationError) Field

Field function returns field value.

func (GetAliyunNlsTokenRequestValidationError) Key

Key function returns key value.

func (GetAliyunNlsTokenRequestValidationError) Reason

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

Cause function returns cause value.

func (GetWordReplyValidationError) Error

Error satisfies the builtin error interface

func (GetWordReplyValidationError) ErrorName

func (e GetWordReplyValidationError) ErrorName() string

ErrorName returns error name.

func (GetWordReplyValidationError) Field

Field function returns field value.

func (GetWordReplyValidationError) Key

Key function returns key value.

func (GetWordReplyValidationError) Reason

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

Cause function returns cause value.

func (GetWordRequestValidationError) Error

Error satisfies the builtin error interface

func (GetWordRequestValidationError) ErrorName

func (e GetWordRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetWordRequestValidationError) Field

Field function returns field value.

func (GetWordRequestValidationError) Key

Key function returns key value.

func (GetWordRequestValidationError) Reason

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

Cause function returns cause value.

func (ListWordReplyValidationError) Error

Error satisfies the builtin error interface

func (ListWordReplyValidationError) ErrorName

func (e ListWordReplyValidationError) ErrorName() string

ErrorName returns error name.

func (ListWordReplyValidationError) Field

Field function returns field value.

func (ListWordReplyValidationError) Key

Key function returns key value.

func (ListWordReplyValidationError) Reason

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

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

Cause function returns cause value.

func (ListWordRequestValidationError) Error

Error satisfies the builtin error interface

func (ListWordRequestValidationError) ErrorName

func (e ListWordRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ListWordRequestValidationError) Field

Field function returns field value.

func (ListWordRequestValidationError) Key

Key function returns key value.

func (ListWordRequestValidationError) Reason

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) DeleteWord

func (UnimplementedWordServiceServer) GetAliyunNlsToken

func (UnimplementedWordServiceServer) GetWord

func (UnimplementedWordServiceServer) ListWord

func (UnimplementedWordServiceServer) UpdateWord

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

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

Cause function returns cause value.

func (UpdateWordReplyValidationError) Error

Error satisfies the builtin error interface

func (UpdateWordReplyValidationError) ErrorName

func (e UpdateWordReplyValidationError) ErrorName() string

ErrorName returns error name.

func (UpdateWordReplyValidationError) Field

Field function returns field value.

func (UpdateWordReplyValidationError) Key

Key function returns key value.

func (UpdateWordReplyValidationError) Reason

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

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

Cause function returns cause value.

func (UpdateWordRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateWordRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateWordRequestValidationError) Field

Field function returns field value.

func (UpdateWordRequestValidationError) Key

Key function returns key value.

func (UpdateWordRequestValidationError) Reason

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) Descriptor() ([]byte, []int)

Deprecated: Use Word.ProtoReflect.Descriptor instead.

func (*Word) GetId

func (x *Word) GetId() int64

func (*Word) GetText

func (x *Word) GetText() string

func (*Word) ProtoMessage

func (*Word) ProtoMessage()

func (*Word) ProtoReflect

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

func (*Word) Reset

func (x *Word) Reset()

func (*Word) String

func (x *Word) String() string

func (*Word) Validate

func (m *Word) Validate() error

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

func (m *Word) ValidateAll() error

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.

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 (*WordServiceHTTPClientImpl) DeleteWord

func (*WordServiceHTTPClientImpl) GetAliyunNlsToken

func (*WordServiceHTTPClientImpl) GetWord

func (*WordServiceHTTPClientImpl) ListWord

func (*WordServiceHTTPClientImpl) UpdateWord

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.

Jump to

Keyboard shortcuts

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