Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterServiceHTTPServer(s *http.Server, srv ServiceHTTPServer)
- func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
- type AddContentReply
- func (*AddContentReply) Descriptor() ([]byte, []int)deprecated
- func (x *AddContentReply) GetId() uint32
- func (*AddContentReply) ProtoMessage()
- func (x *AddContentReply) ProtoReflect() protoreflect.Message
- func (x *AddContentReply) Reset()
- func (x *AddContentReply) String() string
- func (m *AddContentReply) Validate() error
- func (m *AddContentReply) ValidateAll() error
- type AddContentReplyMultiError
- type AddContentReplyValidationError
- func (e AddContentReplyValidationError) Cause() error
- func (e AddContentReplyValidationError) Error() string
- func (e AddContentReplyValidationError) ErrorName() string
- func (e AddContentReplyValidationError) Field() string
- func (e AddContentReplyValidationError) Key() bool
- func (e AddContentReplyValidationError) Reason() string
- type AddContentRequest
- func (*AddContentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddContentRequest) GetContent() string
- func (x *AddContentRequest) GetDescription() string
- func (x *AddContentRequest) GetName() string
- func (x *AddContentRequest) GetStatus() bool
- func (*AddContentRequest) ProtoMessage()
- func (x *AddContentRequest) ProtoReflect() protoreflect.Message
- func (x *AddContentRequest) Reset()
- func (x *AddContentRequest) String() string
- func (m *AddContentRequest) Validate() error
- func (m *AddContentRequest) ValidateAll() error
- type AddContentRequestMultiError
- type AddContentRequestValidationError
- func (e AddContentRequestValidationError) Cause() error
- func (e AddContentRequestValidationError) Error() string
- func (e AddContentRequestValidationError) ErrorName() string
- func (e AddContentRequestValidationError) Field() string
- func (e AddContentRequestValidationError) Key() bool
- func (e AddContentRequestValidationError) Reason() string
- type AddSceneReply
- func (*AddSceneReply) Descriptor() ([]byte, []int)deprecated
- func (x *AddSceneReply) GetId() uint32
- func (*AddSceneReply) ProtoMessage()
- func (x *AddSceneReply) ProtoReflect() protoreflect.Message
- func (x *AddSceneReply) Reset()
- func (x *AddSceneReply) String() string
- func (m *AddSceneReply) Validate() error
- func (m *AddSceneReply) ValidateAll() error
- type AddSceneReplyMultiError
- type AddSceneReplyValidationError
- func (e AddSceneReplyValidationError) Cause() error
- func (e AddSceneReplyValidationError) Error() string
- func (e AddSceneReplyValidationError) ErrorName() string
- func (e AddSceneReplyValidationError) Field() string
- func (e AddSceneReplyValidationError) Key() bool
- func (e AddSceneReplyValidationError) Reason() string
- type AddSceneRequest
- func (*AddSceneRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddSceneRequest) GetContentIds() []uint32
- func (x *AddSceneRequest) GetDescription() string
- func (x *AddSceneRequest) GetKeyword() string
- func (x *AddSceneRequest) GetName() string
- func (*AddSceneRequest) ProtoMessage()
- func (x *AddSceneRequest) ProtoReflect() protoreflect.Message
- func (x *AddSceneRequest) Reset()
- func (x *AddSceneRequest) String() string
- func (m *AddSceneRequest) Validate() error
- func (m *AddSceneRequest) ValidateAll() error
- type AddSceneRequestMultiError
- type AddSceneRequestValidationError
- func (e AddSceneRequestValidationError) Cause() error
- func (e AddSceneRequestValidationError) Error() string
- func (e AddSceneRequestValidationError) ErrorName() string
- func (e AddSceneRequestValidationError) Field() string
- func (e AddSceneRequestValidationError) Key() bool
- func (e AddSceneRequestValidationError) Reason() string
- type Content
- func (*Content) Descriptor() ([]byte, []int)deprecated
- func (x *Content) GetContent() string
- func (x *Content) GetCreatedAt() uint32
- func (x *Content) GetDescription() string
- func (x *Content) GetId() uint32
- func (x *Content) GetName() string
- func (x *Content) GetStatus() bool
- func (x *Content) GetUpdatedAt() uint32
- func (*Content) ProtoMessage()
- func (x *Content) ProtoReflect() protoreflect.Message
- func (x *Content) Reset()
- func (x *Content) String() string
- func (m *Content) Validate() error
- func (m *Content) ValidateAll() error
- type ContentMultiError
- type ContentValidationError
- type DeleteContentRequest
- func (*DeleteContentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteContentRequest) GetId() uint32
- func (*DeleteContentRequest) ProtoMessage()
- func (x *DeleteContentRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteContentRequest) Reset()
- func (x *DeleteContentRequest) String() string
- func (m *DeleteContentRequest) Validate() error
- func (m *DeleteContentRequest) ValidateAll() error
- type DeleteContentRequestMultiError
- type DeleteContentRequestValidationError
- func (e DeleteContentRequestValidationError) Cause() error
- func (e DeleteContentRequestValidationError) Error() string
- func (e DeleteContentRequestValidationError) ErrorName() string
- func (e DeleteContentRequestValidationError) Field() string
- func (e DeleteContentRequestValidationError) Key() bool
- func (e DeleteContentRequestValidationError) Reason() string
- type DeleteSceneRequest
- func (*DeleteSceneRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteSceneRequest) GetId() uint32
- func (*DeleteSceneRequest) ProtoMessage()
- func (x *DeleteSceneRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteSceneRequest) Reset()
- func (x *DeleteSceneRequest) String() string
- func (m *DeleteSceneRequest) Validate() error
- func (m *DeleteSceneRequest) ValidateAll() error
- type DeleteSceneRequestMultiError
- type DeleteSceneRequestValidationError
- func (e DeleteSceneRequestValidationError) Cause() error
- func (e DeleteSceneRequestValidationError) Error() string
- func (e DeleteSceneRequestValidationError) ErrorName() string
- func (e DeleteSceneRequestValidationError) Field() string
- func (e DeleteSceneRequestValidationError) Key() bool
- func (e DeleteSceneRequestValidationError) Reason() string
- type GetContentRequest
- func (*GetContentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetContentRequest) GetId() uint32
- func (*GetContentRequest) ProtoMessage()
- func (x *GetContentRequest) ProtoReflect() protoreflect.Message
- func (x *GetContentRequest) Reset()
- func (x *GetContentRequest) String() string
- func (m *GetContentRequest) Validate() error
- func (m *GetContentRequest) ValidateAll() error
- type GetContentRequestMultiError
- type GetContentRequestValidationError
- func (e GetContentRequestValidationError) Cause() error
- func (e GetContentRequestValidationError) Error() string
- func (e GetContentRequestValidationError) ErrorName() string
- func (e GetContentRequestValidationError) Field() string
- func (e GetContentRequestValidationError) Key() bool
- func (e GetContentRequestValidationError) Reason() string
- type GetSceneByKeywordRequest
- func (*GetSceneByKeywordRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetSceneByKeywordRequest) GetKeyword() string
- func (*GetSceneByKeywordRequest) ProtoMessage()
- func (x *GetSceneByKeywordRequest) ProtoReflect() protoreflect.Message
- func (x *GetSceneByKeywordRequest) Reset()
- func (x *GetSceneByKeywordRequest) String() string
- func (m *GetSceneByKeywordRequest) Validate() error
- func (m *GetSceneByKeywordRequest) ValidateAll() error
- type GetSceneByKeywordRequestMultiError
- type GetSceneByKeywordRequestValidationError
- func (e GetSceneByKeywordRequestValidationError) Cause() error
- func (e GetSceneByKeywordRequestValidationError) Error() string
- func (e GetSceneByKeywordRequestValidationError) ErrorName() string
- func (e GetSceneByKeywordRequestValidationError) Field() string
- func (e GetSceneByKeywordRequestValidationError) Key() bool
- func (e GetSceneByKeywordRequestValidationError) Reason() string
- type PageContentReply
- func (*PageContentReply) Descriptor() ([]byte, []int)deprecated
- func (x *PageContentReply) GetList() []*Content
- func (x *PageContentReply) GetTotal() uint32
- func (*PageContentReply) ProtoMessage()
- func (x *PageContentReply) ProtoReflect() protoreflect.Message
- func (x *PageContentReply) Reset()
- func (x *PageContentReply) String() string
- func (m *PageContentReply) Validate() error
- func (m *PageContentReply) ValidateAll() error
- type PageContentReplyMultiError
- type PageContentReplyValidationError
- func (e PageContentReplyValidationError) Cause() error
- func (e PageContentReplyValidationError) Error() string
- func (e PageContentReplyValidationError) ErrorName() string
- func (e PageContentReplyValidationError) Field() string
- func (e PageContentReplyValidationError) Key() bool
- func (e PageContentReplyValidationError) Reason() string
- type PageContentRequest
- func (*PageContentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PageContentRequest) GetName() string
- func (x *PageContentRequest) GetPage() uint32
- func (x *PageContentRequest) GetPageSize() uint32
- func (*PageContentRequest) ProtoMessage()
- func (x *PageContentRequest) ProtoReflect() protoreflect.Message
- func (x *PageContentRequest) Reset()
- func (x *PageContentRequest) String() string
- func (m *PageContentRequest) Validate() error
- func (m *PageContentRequest) ValidateAll() error
- type PageContentRequestMultiError
- type PageContentRequestValidationError
- func (e PageContentRequestValidationError) Cause() error
- func (e PageContentRequestValidationError) Error() string
- func (e PageContentRequestValidationError) ErrorName() string
- func (e PageContentRequestValidationError) Field() string
- func (e PageContentRequestValidationError) Key() bool
- func (e PageContentRequestValidationError) Reason() string
- type PageSceneReply
- func (*PageSceneReply) Descriptor() ([]byte, []int)deprecated
- func (x *PageSceneReply) GetList() []*Scene
- func (x *PageSceneReply) GetTotal() uint32
- func (*PageSceneReply) ProtoMessage()
- func (x *PageSceneReply) ProtoReflect() protoreflect.Message
- func (x *PageSceneReply) Reset()
- func (x *PageSceneReply) String() string
- func (m *PageSceneReply) Validate() error
- func (m *PageSceneReply) ValidateAll() error
- type PageSceneReplyMultiError
- type PageSceneReplyValidationError
- func (e PageSceneReplyValidationError) Cause() error
- func (e PageSceneReplyValidationError) Error() string
- func (e PageSceneReplyValidationError) ErrorName() string
- func (e PageSceneReplyValidationError) Field() string
- func (e PageSceneReplyValidationError) Key() bool
- func (e PageSceneReplyValidationError) Reason() string
- type PageSceneRequest
- func (*PageSceneRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PageSceneRequest) GetName() string
- func (x *PageSceneRequest) GetPage() uint32
- func (x *PageSceneRequest) GetPageSize() uint32
- func (*PageSceneRequest) ProtoMessage()
- func (x *PageSceneRequest) ProtoReflect() protoreflect.Message
- func (x *PageSceneRequest) Reset()
- func (x *PageSceneRequest) String() string
- func (m *PageSceneRequest) Validate() error
- func (m *PageSceneRequest) ValidateAll() error
- type PageSceneRequestMultiError
- type PageSceneRequestValidationError
- func (e PageSceneRequestValidationError) Cause() error
- func (e PageSceneRequestValidationError) Error() string
- func (e PageSceneRequestValidationError) ErrorName() string
- func (e PageSceneRequestValidationError) Field() string
- func (e PageSceneRequestValidationError) Key() bool
- func (e PageSceneRequestValidationError) Reason() string
- type Scene
- func (*Scene) Descriptor() ([]byte, []int)deprecated
- func (x *Scene) GetContents() []*Scene_Content
- func (x *Scene) GetCreatedAt() uint32
- func (x *Scene) GetDescription() string
- func (x *Scene) GetId() uint32
- func (x *Scene) GetKeyword() string
- func (x *Scene) GetName() string
- func (x *Scene) GetUpdatedAt() uint32
- func (*Scene) ProtoMessage()
- func (x *Scene) ProtoReflect() protoreflect.Message
- func (x *Scene) Reset()
- func (x *Scene) String() string
- func (m *Scene) Validate() error
- func (m *Scene) ValidateAll() error
- type SceneMultiError
- type SceneValidationError
- type Scene_Content
- func (*Scene_Content) Descriptor() ([]byte, []int)deprecated
- func (x *Scene_Content) GetId() uint32
- func (x *Scene_Content) GetName() string
- func (*Scene_Content) ProtoMessage()
- func (x *Scene_Content) ProtoReflect() protoreflect.Message
- func (x *Scene_Content) Reset()
- func (x *Scene_Content) String() string
- func (m *Scene_Content) Validate() error
- func (m *Scene_Content) ValidateAll() error
- type Scene_ContentMultiError
- type Scene_ContentValidationError
- func (e Scene_ContentValidationError) Cause() error
- func (e Scene_ContentValidationError) Error() string
- func (e Scene_ContentValidationError) ErrorName() string
- func (e Scene_ContentValidationError) Field() string
- func (e Scene_ContentValidationError) Key() bool
- func (e Scene_ContentValidationError) Reason() string
- type ServiceClient
- type ServiceHTTPClient
- type ServiceHTTPClientImpl
- func (c *ServiceHTTPClientImpl) AddContent(ctx context.Context, in *AddContentRequest, opts ...http.CallOption) (*AddContentReply, error)
- func (c *ServiceHTTPClientImpl) AddScene(ctx context.Context, in *AddSceneRequest, opts ...http.CallOption) (*AddSceneReply, error)
- func (c *ServiceHTTPClientImpl) DeleteContent(ctx context.Context, in *DeleteContentRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *ServiceHTTPClientImpl) DeleteScene(ctx context.Context, in *DeleteSceneRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *ServiceHTTPClientImpl) GetContent(ctx context.Context, in *GetContentRequest, opts ...http.CallOption) (*Content, error)
- func (c *ServiceHTTPClientImpl) GetSceneByKeyword(ctx context.Context, in *GetSceneByKeywordRequest, opts ...http.CallOption) (*Scene, error)
- func (c *ServiceHTTPClientImpl) PageContent(ctx context.Context, in *PageContentRequest, opts ...http.CallOption) (*PageContentReply, error)
- func (c *ServiceHTTPClientImpl) PageScene(ctx context.Context, in *PageSceneRequest, opts ...http.CallOption) (*PageSceneReply, error)
- func (c *ServiceHTTPClientImpl) UpdateContent(ctx context.Context, in *UpdateContentRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *ServiceHTTPClientImpl) UpdateScene(ctx context.Context, in *UpdateSceneRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- type ServiceHTTPServer
- type ServiceServer
- type UnimplementedServiceServer
- func (UnimplementedServiceServer) AddContent(context.Context, *AddContentRequest) (*AddContentReply, error)
- func (UnimplementedServiceServer) AddScene(context.Context, *AddSceneRequest) (*AddSceneReply, error)
- func (UnimplementedServiceServer) DeleteContent(context.Context, *DeleteContentRequest) (*emptypb.Empty, error)
- func (UnimplementedServiceServer) DeleteScene(context.Context, *DeleteSceneRequest) (*emptypb.Empty, error)
- func (UnimplementedServiceServer) GetContent(context.Context, *GetContentRequest) (*Content, error)
- func (UnimplementedServiceServer) GetSceneByKeyword(context.Context, *GetSceneByKeywordRequest) (*Scene, error)
- func (UnimplementedServiceServer) PageContent(context.Context, *PageContentRequest) (*PageContentReply, error)
- func (UnimplementedServiceServer) PageScene(context.Context, *PageSceneRequest) (*PageSceneReply, error)
- func (UnimplementedServiceServer) UpdateContent(context.Context, *UpdateContentRequest) (*emptypb.Empty, error)
- func (UnimplementedServiceServer) UpdateScene(context.Context, *UpdateSceneRequest) (*emptypb.Empty, error)
- type UnsafeServiceServer
- type UpdateContentRequest
- func (*UpdateContentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateContentRequest) GetContent() string
- func (x *UpdateContentRequest) GetDescription() string
- func (x *UpdateContentRequest) GetId() uint32
- func (x *UpdateContentRequest) GetName() string
- func (x *UpdateContentRequest) GetStatus() bool
- func (*UpdateContentRequest) ProtoMessage()
- func (x *UpdateContentRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateContentRequest) Reset()
- func (x *UpdateContentRequest) String() string
- func (m *UpdateContentRequest) Validate() error
- func (m *UpdateContentRequest) ValidateAll() error
- type UpdateContentRequestMultiError
- type UpdateContentRequestValidationError
- func (e UpdateContentRequestValidationError) Cause() error
- func (e UpdateContentRequestValidationError) Error() string
- func (e UpdateContentRequestValidationError) ErrorName() string
- func (e UpdateContentRequestValidationError) Field() string
- func (e UpdateContentRequestValidationError) Key() bool
- func (e UpdateContentRequestValidationError) Reason() string
- type UpdateSceneRequest
- func (*UpdateSceneRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateSceneRequest) GetContentIds() []uint32
- func (x *UpdateSceneRequest) GetDescription() string
- func (x *UpdateSceneRequest) GetId() uint32
- func (x *UpdateSceneRequest) GetKeyword() string
- func (x *UpdateSceneRequest) GetName() string
- func (*UpdateSceneRequest) ProtoMessage()
- func (x *UpdateSceneRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateSceneRequest) Reset()
- func (x *UpdateSceneRequest) String() string
- func (m *UpdateSceneRequest) Validate() error
- func (m *UpdateSceneRequest) ValidateAll() error
- type UpdateSceneRequestMultiError
- type UpdateSceneRequestValidationError
- func (e UpdateSceneRequestValidationError) Cause() error
- func (e UpdateSceneRequestValidationError) Error() string
- func (e UpdateSceneRequestValidationError) ErrorName() string
- func (e UpdateSceneRequestValidationError) Field() string
- func (e UpdateSceneRequestValidationError) Key() bool
- func (e UpdateSceneRequestValidationError) Reason() string
Constants ¶
const ( Service_PageContent_FullMethodName = "/agreement.Service/PageContent" Service_GetContent_FullMethodName = "/agreement.Service/GetContent" Service_AddContent_FullMethodName = "/agreement.Service/AddContent" Service_UpdateContent_FullMethodName = "/agreement.Service/UpdateContent" Service_DeleteContent_FullMethodName = "/agreement.Service/DeleteContent" Service_PageScene_FullMethodName = "/agreement.Service/PageScene" Service_GetSceneByKeyword_FullMethodName = "/agreement.Service/GetSceneByKeyword" Service_AddScene_FullMethodName = "/agreement.Service/AddScene" Service_UpdateScene_FullMethodName = "/agreement.Service/UpdateScene" Service_DeleteScene_FullMethodName = "/agreement.Service/DeleteScene" )
const OperationServiceAddContent = "/agreement.Service/AddContent"
const OperationServiceAddScene = "/agreement.Service/AddScene"
const OperationServiceDeleteContent = "/agreement.Service/DeleteContent"
const OperationServiceDeleteScene = "/agreement.Service/DeleteScene"
const OperationServiceGetContent = "/agreement.Service/GetContent"
const OperationServiceGetSceneByKeyword = "/agreement.Service/GetSceneByKeyword"
const OperationServicePageContent = "/agreement.Service/PageContent"
const OperationServicePageScene = "/agreement.Service/PageScene"
const OperationServiceUpdateContent = "/agreement.Service/UpdateContent"
const OperationServiceUpdateScene = "/agreement.Service/UpdateScene"
Variables ¶
var File_user_center_agreement_content_proto protoreflect.FileDescriptor
var File_user_center_agreement_scene_proto protoreflect.FileDescriptor
var File_user_center_agreement_service_proto protoreflect.FileDescriptor
var Service_ServiceDesc = grpc.ServiceDesc{ ServiceName: "agreement.Service", HandlerType: (*ServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "PageContent", Handler: _Service_PageContent_Handler, }, { MethodName: "GetContent", Handler: _Service_GetContent_Handler, }, { MethodName: "AddContent", Handler: _Service_AddContent_Handler, }, { MethodName: "UpdateContent", Handler: _Service_UpdateContent_Handler, }, { MethodName: "DeleteContent", Handler: _Service_DeleteContent_Handler, }, { MethodName: "PageScene", Handler: _Service_PageScene_Handler, }, { MethodName: "GetSceneByKeyword", Handler: _Service_GetSceneByKeyword_Handler, }, { MethodName: "AddScene", Handler: _Service_AddScene_Handler, }, { MethodName: "UpdateScene", Handler: _Service_UpdateScene_Handler, }, { MethodName: "DeleteScene", Handler: _Service_DeleteScene_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "user_center_agreement_service.proto", }
Service_ServiceDesc is the grpc.ServiceDesc for Service service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterServiceHTTPServer ¶
func RegisterServiceHTTPServer(s *http.Server, srv ServiceHTTPServer)
func RegisterServiceServer ¶
func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)
Types ¶
type AddContentReply ¶
type AddContentReply struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*AddContentReply) Descriptor
deprecated
func (*AddContentReply) Descriptor() ([]byte, []int)
Deprecated: Use AddContentReply.ProtoReflect.Descriptor instead.
func (*AddContentReply) GetId ¶
func (x *AddContentReply) GetId() uint32
func (*AddContentReply) ProtoMessage ¶
func (*AddContentReply) ProtoMessage()
func (*AddContentReply) ProtoReflect ¶
func (x *AddContentReply) ProtoReflect() protoreflect.Message
func (*AddContentReply) Reset ¶
func (x *AddContentReply) Reset()
func (*AddContentReply) String ¶
func (x *AddContentReply) String() string
func (*AddContentReply) Validate ¶
func (m *AddContentReply) Validate() error
Validate checks the field values on AddContentReply 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 (*AddContentReply) ValidateAll ¶
func (m *AddContentReply) ValidateAll() error
ValidateAll checks the field values on AddContentReply 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 AddContentReplyMultiError, or nil if none found.
type AddContentReplyMultiError ¶
type AddContentReplyMultiError []error
AddContentReplyMultiError is an error wrapping multiple validation errors returned by AddContentReply.ValidateAll() if the designated constraints aren't met.
func (AddContentReplyMultiError) AllErrors ¶
func (m AddContentReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AddContentReplyMultiError) Error ¶
func (m AddContentReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AddContentReplyValidationError ¶
type AddContentReplyValidationError struct {
// contains filtered or unexported fields
}
AddContentReplyValidationError is the validation error returned by AddContentReply.Validate if the designated constraints aren't met.
func (AddContentReplyValidationError) Cause ¶
func (e AddContentReplyValidationError) Cause() error
Cause function returns cause value.
func (AddContentReplyValidationError) Error ¶
func (e AddContentReplyValidationError) Error() string
Error satisfies the builtin error interface
func (AddContentReplyValidationError) ErrorName ¶
func (e AddContentReplyValidationError) ErrorName() string
ErrorName returns error name.
func (AddContentReplyValidationError) Field ¶
func (e AddContentReplyValidationError) Field() string
Field function returns field value.
func (AddContentReplyValidationError) Key ¶
func (e AddContentReplyValidationError) Key() bool
Key function returns key value.
func (AddContentReplyValidationError) Reason ¶
func (e AddContentReplyValidationError) Reason() string
Reason function returns reason value.
type AddContentRequest ¶
type AddContentRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Status bool `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"` Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
func (*AddContentRequest) Descriptor
deprecated
func (*AddContentRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddContentRequest.ProtoReflect.Descriptor instead.
func (*AddContentRequest) GetContent ¶
func (x *AddContentRequest) GetContent() string
func (*AddContentRequest) GetDescription ¶
func (x *AddContentRequest) GetDescription() string
func (*AddContentRequest) GetName ¶
func (x *AddContentRequest) GetName() string
func (*AddContentRequest) GetStatus ¶
func (x *AddContentRequest) GetStatus() bool
func (*AddContentRequest) ProtoMessage ¶
func (*AddContentRequest) ProtoMessage()
func (*AddContentRequest) ProtoReflect ¶
func (x *AddContentRequest) ProtoReflect() protoreflect.Message
func (*AddContentRequest) Reset ¶
func (x *AddContentRequest) Reset()
func (*AddContentRequest) String ¶
func (x *AddContentRequest) String() string
func (*AddContentRequest) Validate ¶
func (m *AddContentRequest) Validate() error
Validate checks the field values on AddContentRequest 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 (*AddContentRequest) ValidateAll ¶
func (m *AddContentRequest) ValidateAll() error
ValidateAll checks the field values on AddContentRequest 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 AddContentRequestMultiError, or nil if none found.
type AddContentRequestMultiError ¶
type AddContentRequestMultiError []error
AddContentRequestMultiError is an error wrapping multiple validation errors returned by AddContentRequest.ValidateAll() if the designated constraints aren't met.
func (AddContentRequestMultiError) AllErrors ¶
func (m AddContentRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AddContentRequestMultiError) Error ¶
func (m AddContentRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AddContentRequestValidationError ¶
type AddContentRequestValidationError struct {
// contains filtered or unexported fields
}
AddContentRequestValidationError is the validation error returned by AddContentRequest.Validate if the designated constraints aren't met.
func (AddContentRequestValidationError) Cause ¶
func (e AddContentRequestValidationError) Cause() error
Cause function returns cause value.
func (AddContentRequestValidationError) Error ¶
func (e AddContentRequestValidationError) Error() string
Error satisfies the builtin error interface
func (AddContentRequestValidationError) ErrorName ¶
func (e AddContentRequestValidationError) ErrorName() string
ErrorName returns error name.
func (AddContentRequestValidationError) Field ¶
func (e AddContentRequestValidationError) Field() string
Field function returns field value.
func (AddContentRequestValidationError) Key ¶
func (e AddContentRequestValidationError) Key() bool
Key function returns key value.
func (AddContentRequestValidationError) Reason ¶
func (e AddContentRequestValidationError) Reason() string
Reason function returns reason value.
type AddSceneReply ¶
type AddSceneReply struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*AddSceneReply) Descriptor
deprecated
func (*AddSceneReply) Descriptor() ([]byte, []int)
Deprecated: Use AddSceneReply.ProtoReflect.Descriptor instead.
func (*AddSceneReply) GetId ¶
func (x *AddSceneReply) GetId() uint32
func (*AddSceneReply) ProtoMessage ¶
func (*AddSceneReply) ProtoMessage()
func (*AddSceneReply) ProtoReflect ¶
func (x *AddSceneReply) ProtoReflect() protoreflect.Message
func (*AddSceneReply) Reset ¶
func (x *AddSceneReply) Reset()
func (*AddSceneReply) String ¶
func (x *AddSceneReply) String() string
func (*AddSceneReply) Validate ¶
func (m *AddSceneReply) Validate() error
Validate checks the field values on AddSceneReply 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 (*AddSceneReply) ValidateAll ¶
func (m *AddSceneReply) ValidateAll() error
ValidateAll checks the field values on AddSceneReply 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 AddSceneReplyMultiError, or nil if none found.
type AddSceneReplyMultiError ¶
type AddSceneReplyMultiError []error
AddSceneReplyMultiError is an error wrapping multiple validation errors returned by AddSceneReply.ValidateAll() if the designated constraints aren't met.
func (AddSceneReplyMultiError) AllErrors ¶
func (m AddSceneReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AddSceneReplyMultiError) Error ¶
func (m AddSceneReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AddSceneReplyValidationError ¶
type AddSceneReplyValidationError struct {
// contains filtered or unexported fields
}
AddSceneReplyValidationError is the validation error returned by AddSceneReply.Validate if the designated constraints aren't met.
func (AddSceneReplyValidationError) Cause ¶
func (e AddSceneReplyValidationError) Cause() error
Cause function returns cause value.
func (AddSceneReplyValidationError) Error ¶
func (e AddSceneReplyValidationError) Error() string
Error satisfies the builtin error interface
func (AddSceneReplyValidationError) ErrorName ¶
func (e AddSceneReplyValidationError) ErrorName() string
ErrorName returns error name.
func (AddSceneReplyValidationError) Field ¶
func (e AddSceneReplyValidationError) Field() string
Field function returns field value.
func (AddSceneReplyValidationError) Key ¶
func (e AddSceneReplyValidationError) Key() bool
Key function returns key value.
func (AddSceneReplyValidationError) Reason ¶
func (e AddSceneReplyValidationError) Reason() string
Reason function returns reason value.
type AddSceneRequest ¶
type AddSceneRequest struct { Keyword string `protobuf:"bytes,1,opt,name=keyword,proto3" json:"keyword,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` ContentIds []uint32 `protobuf:"varint,4,rep,packed,name=content_ids,json=contentIds,proto3" json:"content_ids,omitempty"` // contains filtered or unexported fields }
func (*AddSceneRequest) Descriptor
deprecated
func (*AddSceneRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddSceneRequest.ProtoReflect.Descriptor instead.
func (*AddSceneRequest) GetContentIds ¶
func (x *AddSceneRequest) GetContentIds() []uint32
func (*AddSceneRequest) GetDescription ¶
func (x *AddSceneRequest) GetDescription() string
func (*AddSceneRequest) GetKeyword ¶
func (x *AddSceneRequest) GetKeyword() string
func (*AddSceneRequest) GetName ¶
func (x *AddSceneRequest) GetName() string
func (*AddSceneRequest) ProtoMessage ¶
func (*AddSceneRequest) ProtoMessage()
func (*AddSceneRequest) ProtoReflect ¶
func (x *AddSceneRequest) ProtoReflect() protoreflect.Message
func (*AddSceneRequest) Reset ¶
func (x *AddSceneRequest) Reset()
func (*AddSceneRequest) String ¶
func (x *AddSceneRequest) String() string
func (*AddSceneRequest) Validate ¶
func (m *AddSceneRequest) Validate() error
Validate checks the field values on AddSceneRequest 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 (*AddSceneRequest) ValidateAll ¶
func (m *AddSceneRequest) ValidateAll() error
ValidateAll checks the field values on AddSceneRequest 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 AddSceneRequestMultiError, or nil if none found.
type AddSceneRequestMultiError ¶
type AddSceneRequestMultiError []error
AddSceneRequestMultiError is an error wrapping multiple validation errors returned by AddSceneRequest.ValidateAll() if the designated constraints aren't met.
func (AddSceneRequestMultiError) AllErrors ¶
func (m AddSceneRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AddSceneRequestMultiError) Error ¶
func (m AddSceneRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AddSceneRequestValidationError ¶
type AddSceneRequestValidationError struct {
// contains filtered or unexported fields
}
AddSceneRequestValidationError is the validation error returned by AddSceneRequest.Validate if the designated constraints aren't met.
func (AddSceneRequestValidationError) Cause ¶
func (e AddSceneRequestValidationError) Cause() error
Cause function returns cause value.
func (AddSceneRequestValidationError) Error ¶
func (e AddSceneRequestValidationError) Error() string
Error satisfies the builtin error interface
func (AddSceneRequestValidationError) ErrorName ¶
func (e AddSceneRequestValidationError) ErrorName() string
ErrorName returns error name.
func (AddSceneRequestValidationError) Field ¶
func (e AddSceneRequestValidationError) Field() string
Field function returns field value.
func (AddSceneRequestValidationError) Key ¶
func (e AddSceneRequestValidationError) Key() bool
Key function returns key value.
func (AddSceneRequestValidationError) Reason ¶
func (e AddSceneRequestValidationError) Reason() string
Reason function returns reason value.
type Content ¶
type Content struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Status bool `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"` Content string `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"` Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` CreatedAt uint32 `protobuf:"varint,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt uint32 `protobuf:"varint,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // contains filtered or unexported fields }
func (*Content) Descriptor
deprecated
func (*Content) GetContent ¶
func (*Content) GetCreatedAt ¶
func (*Content) GetDescription ¶
func (*Content) GetUpdatedAt ¶
func (*Content) ProtoMessage ¶
func (*Content) ProtoMessage()
func (*Content) ProtoReflect ¶
func (x *Content) ProtoReflect() protoreflect.Message
func (*Content) Validate ¶
Validate checks the field values on Content 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 (*Content) ValidateAll ¶
ValidateAll checks the field values on Content 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 ContentMultiError, or nil if none found.
type ContentMultiError ¶
type ContentMultiError []error
ContentMultiError is an error wrapping multiple validation errors returned by Content.ValidateAll() if the designated constraints aren't met.
func (ContentMultiError) AllErrors ¶
func (m ContentMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ContentMultiError) Error ¶
func (m ContentMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ContentValidationError ¶
type ContentValidationError struct {
// contains filtered or unexported fields
}
ContentValidationError is the validation error returned by Content.Validate if the designated constraints aren't met.
func (ContentValidationError) Cause ¶
func (e ContentValidationError) Cause() error
Cause function returns cause value.
func (ContentValidationError) Error ¶
func (e ContentValidationError) Error() string
Error satisfies the builtin error interface
func (ContentValidationError) ErrorName ¶
func (e ContentValidationError) ErrorName() string
ErrorName returns error name.
func (ContentValidationError) Field ¶
func (e ContentValidationError) Field() string
Field function returns field value.
func (ContentValidationError) Key ¶
func (e ContentValidationError) Key() bool
Key function returns key value.
func (ContentValidationError) Reason ¶
func (e ContentValidationError) Reason() string
Reason function returns reason value.
type DeleteContentRequest ¶
type DeleteContentRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteContentRequest) Descriptor
deprecated
func (*DeleteContentRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteContentRequest.ProtoReflect.Descriptor instead.
func (*DeleteContentRequest) GetId ¶
func (x *DeleteContentRequest) GetId() uint32
func (*DeleteContentRequest) ProtoMessage ¶
func (*DeleteContentRequest) ProtoMessage()
func (*DeleteContentRequest) ProtoReflect ¶
func (x *DeleteContentRequest) ProtoReflect() protoreflect.Message
func (*DeleteContentRequest) Reset ¶
func (x *DeleteContentRequest) Reset()
func (*DeleteContentRequest) String ¶
func (x *DeleteContentRequest) String() string
func (*DeleteContentRequest) Validate ¶
func (m *DeleteContentRequest) Validate() error
Validate checks the field values on DeleteContentRequest 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 (*DeleteContentRequest) ValidateAll ¶
func (m *DeleteContentRequest) ValidateAll() error
ValidateAll checks the field values on DeleteContentRequest 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 DeleteContentRequestMultiError, or nil if none found.
type DeleteContentRequestMultiError ¶
type DeleteContentRequestMultiError []error
DeleteContentRequestMultiError is an error wrapping multiple validation errors returned by DeleteContentRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteContentRequestMultiError) AllErrors ¶
func (m DeleteContentRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteContentRequestMultiError) Error ¶
func (m DeleteContentRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteContentRequestValidationError ¶
type DeleteContentRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteContentRequestValidationError is the validation error returned by DeleteContentRequest.Validate if the designated constraints aren't met.
func (DeleteContentRequestValidationError) Cause ¶
func (e DeleteContentRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteContentRequestValidationError) Error ¶
func (e DeleteContentRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteContentRequestValidationError) ErrorName ¶
func (e DeleteContentRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteContentRequestValidationError) Field ¶
func (e DeleteContentRequestValidationError) Field() string
Field function returns field value.
func (DeleteContentRequestValidationError) Key ¶
func (e DeleteContentRequestValidationError) Key() bool
Key function returns key value.
func (DeleteContentRequestValidationError) Reason ¶
func (e DeleteContentRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteSceneRequest ¶
type DeleteSceneRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteSceneRequest) Descriptor
deprecated
func (*DeleteSceneRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteSceneRequest.ProtoReflect.Descriptor instead.
func (*DeleteSceneRequest) GetId ¶
func (x *DeleteSceneRequest) GetId() uint32
func (*DeleteSceneRequest) ProtoMessage ¶
func (*DeleteSceneRequest) ProtoMessage()
func (*DeleteSceneRequest) ProtoReflect ¶
func (x *DeleteSceneRequest) ProtoReflect() protoreflect.Message
func (*DeleteSceneRequest) Reset ¶
func (x *DeleteSceneRequest) Reset()
func (*DeleteSceneRequest) String ¶
func (x *DeleteSceneRequest) String() string
func (*DeleteSceneRequest) Validate ¶
func (m *DeleteSceneRequest) Validate() error
Validate checks the field values on DeleteSceneRequest 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 (*DeleteSceneRequest) ValidateAll ¶
func (m *DeleteSceneRequest) ValidateAll() error
ValidateAll checks the field values on DeleteSceneRequest 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 DeleteSceneRequestMultiError, or nil if none found.
type DeleteSceneRequestMultiError ¶
type DeleteSceneRequestMultiError []error
DeleteSceneRequestMultiError is an error wrapping multiple validation errors returned by DeleteSceneRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteSceneRequestMultiError) AllErrors ¶
func (m DeleteSceneRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteSceneRequestMultiError) Error ¶
func (m DeleteSceneRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteSceneRequestValidationError ¶
type DeleteSceneRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteSceneRequestValidationError is the validation error returned by DeleteSceneRequest.Validate if the designated constraints aren't met.
func (DeleteSceneRequestValidationError) Cause ¶
func (e DeleteSceneRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteSceneRequestValidationError) Error ¶
func (e DeleteSceneRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteSceneRequestValidationError) ErrorName ¶
func (e DeleteSceneRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteSceneRequestValidationError) Field ¶
func (e DeleteSceneRequestValidationError) Field() string
Field function returns field value.
func (DeleteSceneRequestValidationError) Key ¶
func (e DeleteSceneRequestValidationError) Key() bool
Key function returns key value.
func (DeleteSceneRequestValidationError) Reason ¶
func (e DeleteSceneRequestValidationError) Reason() string
Reason function returns reason value.
type GetContentRequest ¶
type GetContentRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetContentRequest) Descriptor
deprecated
func (*GetContentRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetContentRequest.ProtoReflect.Descriptor instead.
func (*GetContentRequest) GetId ¶
func (x *GetContentRequest) GetId() uint32
func (*GetContentRequest) ProtoMessage ¶
func (*GetContentRequest) ProtoMessage()
func (*GetContentRequest) ProtoReflect ¶
func (x *GetContentRequest) ProtoReflect() protoreflect.Message
func (*GetContentRequest) Reset ¶
func (x *GetContentRequest) Reset()
func (*GetContentRequest) String ¶
func (x *GetContentRequest) String() string
func (*GetContentRequest) Validate ¶
func (m *GetContentRequest) Validate() error
Validate checks the field values on GetContentRequest 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 (*GetContentRequest) ValidateAll ¶
func (m *GetContentRequest) ValidateAll() error
ValidateAll checks the field values on GetContentRequest 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 GetContentRequestMultiError, or nil if none found.
type GetContentRequestMultiError ¶
type GetContentRequestMultiError []error
GetContentRequestMultiError is an error wrapping multiple validation errors returned by GetContentRequest.ValidateAll() if the designated constraints aren't met.
func (GetContentRequestMultiError) AllErrors ¶
func (m GetContentRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetContentRequestMultiError) Error ¶
func (m GetContentRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetContentRequestValidationError ¶
type GetContentRequestValidationError struct {
// contains filtered or unexported fields
}
GetContentRequestValidationError is the validation error returned by GetContentRequest.Validate if the designated constraints aren't met.
func (GetContentRequestValidationError) Cause ¶
func (e GetContentRequestValidationError) Cause() error
Cause function returns cause value.
func (GetContentRequestValidationError) Error ¶
func (e GetContentRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetContentRequestValidationError) ErrorName ¶
func (e GetContentRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetContentRequestValidationError) Field ¶
func (e GetContentRequestValidationError) Field() string
Field function returns field value.
func (GetContentRequestValidationError) Key ¶
func (e GetContentRequestValidationError) Key() bool
Key function returns key value.
func (GetContentRequestValidationError) Reason ¶
func (e GetContentRequestValidationError) Reason() string
Reason function returns reason value.
type GetSceneByKeywordRequest ¶
type GetSceneByKeywordRequest struct { Keyword string `protobuf:"bytes,1,opt,name=keyword,proto3" json:"keyword,omitempty"` // contains filtered or unexported fields }
func (*GetSceneByKeywordRequest) Descriptor
deprecated
func (*GetSceneByKeywordRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetSceneByKeywordRequest.ProtoReflect.Descriptor instead.
func (*GetSceneByKeywordRequest) GetKeyword ¶
func (x *GetSceneByKeywordRequest) GetKeyword() string
func (*GetSceneByKeywordRequest) ProtoMessage ¶
func (*GetSceneByKeywordRequest) ProtoMessage()
func (*GetSceneByKeywordRequest) ProtoReflect ¶
func (x *GetSceneByKeywordRequest) ProtoReflect() protoreflect.Message
func (*GetSceneByKeywordRequest) Reset ¶
func (x *GetSceneByKeywordRequest) Reset()
func (*GetSceneByKeywordRequest) String ¶
func (x *GetSceneByKeywordRequest) String() string
func (*GetSceneByKeywordRequest) Validate ¶
func (m *GetSceneByKeywordRequest) Validate() error
Validate checks the field values on GetSceneByKeywordRequest 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 (*GetSceneByKeywordRequest) ValidateAll ¶
func (m *GetSceneByKeywordRequest) ValidateAll() error
ValidateAll checks the field values on GetSceneByKeywordRequest 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 GetSceneByKeywordRequestMultiError, or nil if none found.
type GetSceneByKeywordRequestMultiError ¶
type GetSceneByKeywordRequestMultiError []error
GetSceneByKeywordRequestMultiError is an error wrapping multiple validation errors returned by GetSceneByKeywordRequest.ValidateAll() if the designated constraints aren't met.
func (GetSceneByKeywordRequestMultiError) AllErrors ¶
func (m GetSceneByKeywordRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetSceneByKeywordRequestMultiError) Error ¶
func (m GetSceneByKeywordRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetSceneByKeywordRequestValidationError ¶
type GetSceneByKeywordRequestValidationError struct {
// contains filtered or unexported fields
}
GetSceneByKeywordRequestValidationError is the validation error returned by GetSceneByKeywordRequest.Validate if the designated constraints aren't met.
func (GetSceneByKeywordRequestValidationError) Cause ¶
func (e GetSceneByKeywordRequestValidationError) Cause() error
Cause function returns cause value.
func (GetSceneByKeywordRequestValidationError) Error ¶
func (e GetSceneByKeywordRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetSceneByKeywordRequestValidationError) ErrorName ¶
func (e GetSceneByKeywordRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetSceneByKeywordRequestValidationError) Field ¶
func (e GetSceneByKeywordRequestValidationError) Field() string
Field function returns field value.
func (GetSceneByKeywordRequestValidationError) Key ¶
func (e GetSceneByKeywordRequestValidationError) Key() bool
Key function returns key value.
func (GetSceneByKeywordRequestValidationError) Reason ¶
func (e GetSceneByKeywordRequestValidationError) Reason() string
Reason function returns reason value.
type PageContentReply ¶
type PageContentReply struct { Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` List []*Content `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*PageContentReply) Descriptor
deprecated
func (*PageContentReply) Descriptor() ([]byte, []int)
Deprecated: Use PageContentReply.ProtoReflect.Descriptor instead.
func (*PageContentReply) GetList ¶
func (x *PageContentReply) GetList() []*Content
func (*PageContentReply) GetTotal ¶
func (x *PageContentReply) GetTotal() uint32
func (*PageContentReply) ProtoMessage ¶
func (*PageContentReply) ProtoMessage()
func (*PageContentReply) ProtoReflect ¶
func (x *PageContentReply) ProtoReflect() protoreflect.Message
func (*PageContentReply) Reset ¶
func (x *PageContentReply) Reset()
func (*PageContentReply) String ¶
func (x *PageContentReply) String() string
func (*PageContentReply) Validate ¶
func (m *PageContentReply) Validate() error
Validate checks the field values on PageContentReply 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 (*PageContentReply) ValidateAll ¶
func (m *PageContentReply) ValidateAll() error
ValidateAll checks the field values on PageContentReply 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 PageContentReplyMultiError, or nil if none found.
type PageContentReplyMultiError ¶
type PageContentReplyMultiError []error
PageContentReplyMultiError is an error wrapping multiple validation errors returned by PageContentReply.ValidateAll() if the designated constraints aren't met.
func (PageContentReplyMultiError) AllErrors ¶
func (m PageContentReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PageContentReplyMultiError) Error ¶
func (m PageContentReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PageContentReplyValidationError ¶
type PageContentReplyValidationError struct {
// contains filtered or unexported fields
}
PageContentReplyValidationError is the validation error returned by PageContentReply.Validate if the designated constraints aren't met.
func (PageContentReplyValidationError) Cause ¶
func (e PageContentReplyValidationError) Cause() error
Cause function returns cause value.
func (PageContentReplyValidationError) Error ¶
func (e PageContentReplyValidationError) Error() string
Error satisfies the builtin error interface
func (PageContentReplyValidationError) ErrorName ¶
func (e PageContentReplyValidationError) ErrorName() string
ErrorName returns error name.
func (PageContentReplyValidationError) Field ¶
func (e PageContentReplyValidationError) Field() string
Field function returns field value.
func (PageContentReplyValidationError) Key ¶
func (e PageContentReplyValidationError) Key() bool
Key function returns key value.
func (PageContentReplyValidationError) Reason ¶
func (e PageContentReplyValidationError) Reason() string
Reason function returns reason value.
type PageContentRequest ¶
type PageContentRequest struct { Page uint32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` PageSize uint32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` Name *string `protobuf:"bytes,3,opt,name=name,proto3,oneof" json:"name,omitempty"` // contains filtered or unexported fields }
func (*PageContentRequest) Descriptor
deprecated
func (*PageContentRequest) Descriptor() ([]byte, []int)
Deprecated: Use PageContentRequest.ProtoReflect.Descriptor instead.
func (*PageContentRequest) GetName ¶
func (x *PageContentRequest) GetName() string
func (*PageContentRequest) GetPage ¶
func (x *PageContentRequest) GetPage() uint32
func (*PageContentRequest) GetPageSize ¶
func (x *PageContentRequest) GetPageSize() uint32
func (*PageContentRequest) ProtoMessage ¶
func (*PageContentRequest) ProtoMessage()
func (*PageContentRequest) ProtoReflect ¶
func (x *PageContentRequest) ProtoReflect() protoreflect.Message
func (*PageContentRequest) Reset ¶
func (x *PageContentRequest) Reset()
func (*PageContentRequest) String ¶
func (x *PageContentRequest) String() string
func (*PageContentRequest) Validate ¶
func (m *PageContentRequest) Validate() error
Validate checks the field values on PageContentRequest 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 (*PageContentRequest) ValidateAll ¶
func (m *PageContentRequest) ValidateAll() error
ValidateAll checks the field values on PageContentRequest 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 PageContentRequestMultiError, or nil if none found.
type PageContentRequestMultiError ¶
type PageContentRequestMultiError []error
PageContentRequestMultiError is an error wrapping multiple validation errors returned by PageContentRequest.ValidateAll() if the designated constraints aren't met.
func (PageContentRequestMultiError) AllErrors ¶
func (m PageContentRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PageContentRequestMultiError) Error ¶
func (m PageContentRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PageContentRequestValidationError ¶
type PageContentRequestValidationError struct {
// contains filtered or unexported fields
}
PageContentRequestValidationError is the validation error returned by PageContentRequest.Validate if the designated constraints aren't met.
func (PageContentRequestValidationError) Cause ¶
func (e PageContentRequestValidationError) Cause() error
Cause function returns cause value.
func (PageContentRequestValidationError) Error ¶
func (e PageContentRequestValidationError) Error() string
Error satisfies the builtin error interface
func (PageContentRequestValidationError) ErrorName ¶
func (e PageContentRequestValidationError) ErrorName() string
ErrorName returns error name.
func (PageContentRequestValidationError) Field ¶
func (e PageContentRequestValidationError) Field() string
Field function returns field value.
func (PageContentRequestValidationError) Key ¶
func (e PageContentRequestValidationError) Key() bool
Key function returns key value.
func (PageContentRequestValidationError) Reason ¶
func (e PageContentRequestValidationError) Reason() string
Reason function returns reason value.
type PageSceneReply ¶
type PageSceneReply struct { Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` List []*Scene `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*PageSceneReply) Descriptor
deprecated
func (*PageSceneReply) Descriptor() ([]byte, []int)
Deprecated: Use PageSceneReply.ProtoReflect.Descriptor instead.
func (*PageSceneReply) GetList ¶
func (x *PageSceneReply) GetList() []*Scene
func (*PageSceneReply) GetTotal ¶
func (x *PageSceneReply) GetTotal() uint32
func (*PageSceneReply) ProtoMessage ¶
func (*PageSceneReply) ProtoMessage()
func (*PageSceneReply) ProtoReflect ¶
func (x *PageSceneReply) ProtoReflect() protoreflect.Message
func (*PageSceneReply) Reset ¶
func (x *PageSceneReply) Reset()
func (*PageSceneReply) String ¶
func (x *PageSceneReply) String() string
func (*PageSceneReply) Validate ¶
func (m *PageSceneReply) Validate() error
Validate checks the field values on PageSceneReply 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 (*PageSceneReply) ValidateAll ¶
func (m *PageSceneReply) ValidateAll() error
ValidateAll checks the field values on PageSceneReply 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 PageSceneReplyMultiError, or nil if none found.
type PageSceneReplyMultiError ¶
type PageSceneReplyMultiError []error
PageSceneReplyMultiError is an error wrapping multiple validation errors returned by PageSceneReply.ValidateAll() if the designated constraints aren't met.
func (PageSceneReplyMultiError) AllErrors ¶
func (m PageSceneReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PageSceneReplyMultiError) Error ¶
func (m PageSceneReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PageSceneReplyValidationError ¶
type PageSceneReplyValidationError struct {
// contains filtered or unexported fields
}
PageSceneReplyValidationError is the validation error returned by PageSceneReply.Validate if the designated constraints aren't met.
func (PageSceneReplyValidationError) Cause ¶
func (e PageSceneReplyValidationError) Cause() error
Cause function returns cause value.
func (PageSceneReplyValidationError) Error ¶
func (e PageSceneReplyValidationError) Error() string
Error satisfies the builtin error interface
func (PageSceneReplyValidationError) ErrorName ¶
func (e PageSceneReplyValidationError) ErrorName() string
ErrorName returns error name.
func (PageSceneReplyValidationError) Field ¶
func (e PageSceneReplyValidationError) Field() string
Field function returns field value.
func (PageSceneReplyValidationError) Key ¶
func (e PageSceneReplyValidationError) Key() bool
Key function returns key value.
func (PageSceneReplyValidationError) Reason ¶
func (e PageSceneReplyValidationError) Reason() string
Reason function returns reason value.
type PageSceneRequest ¶
type PageSceneRequest struct { Page uint32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"` PageSize uint32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` Name *string `protobuf:"bytes,3,opt,name=name,proto3,oneof" json:"name,omitempty"` // contains filtered or unexported fields }
func (*PageSceneRequest) Descriptor
deprecated
func (*PageSceneRequest) Descriptor() ([]byte, []int)
Deprecated: Use PageSceneRequest.ProtoReflect.Descriptor instead.
func (*PageSceneRequest) GetName ¶
func (x *PageSceneRequest) GetName() string
func (*PageSceneRequest) GetPage ¶
func (x *PageSceneRequest) GetPage() uint32
func (*PageSceneRequest) GetPageSize ¶
func (x *PageSceneRequest) GetPageSize() uint32
func (*PageSceneRequest) ProtoMessage ¶
func (*PageSceneRequest) ProtoMessage()
func (*PageSceneRequest) ProtoReflect ¶
func (x *PageSceneRequest) ProtoReflect() protoreflect.Message
func (*PageSceneRequest) Reset ¶
func (x *PageSceneRequest) Reset()
func (*PageSceneRequest) String ¶
func (x *PageSceneRequest) String() string
func (*PageSceneRequest) Validate ¶
func (m *PageSceneRequest) Validate() error
Validate checks the field values on PageSceneRequest 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 (*PageSceneRequest) ValidateAll ¶
func (m *PageSceneRequest) ValidateAll() error
ValidateAll checks the field values on PageSceneRequest 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 PageSceneRequestMultiError, or nil if none found.
type PageSceneRequestMultiError ¶
type PageSceneRequestMultiError []error
PageSceneRequestMultiError is an error wrapping multiple validation errors returned by PageSceneRequest.ValidateAll() if the designated constraints aren't met.
func (PageSceneRequestMultiError) AllErrors ¶
func (m PageSceneRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PageSceneRequestMultiError) Error ¶
func (m PageSceneRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PageSceneRequestValidationError ¶
type PageSceneRequestValidationError struct {
// contains filtered or unexported fields
}
PageSceneRequestValidationError is the validation error returned by PageSceneRequest.Validate if the designated constraints aren't met.
func (PageSceneRequestValidationError) Cause ¶
func (e PageSceneRequestValidationError) Cause() error
Cause function returns cause value.
func (PageSceneRequestValidationError) Error ¶
func (e PageSceneRequestValidationError) Error() string
Error satisfies the builtin error interface
func (PageSceneRequestValidationError) ErrorName ¶
func (e PageSceneRequestValidationError) ErrorName() string
ErrorName returns error name.
func (PageSceneRequestValidationError) Field ¶
func (e PageSceneRequestValidationError) Field() string
Field function returns field value.
func (PageSceneRequestValidationError) Key ¶
func (e PageSceneRequestValidationError) Key() bool
Key function returns key value.
func (PageSceneRequestValidationError) Reason ¶
func (e PageSceneRequestValidationError) Reason() string
Reason function returns reason value.
type Scene ¶
type Scene struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Keyword string `protobuf:"bytes,2,opt,name=keyword,proto3" json:"keyword,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` Contents []*Scene_Content `protobuf:"bytes,5,rep,name=contents,proto3" json:"contents,omitempty"` CreatedAt uint32 `protobuf:"varint,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt uint32 `protobuf:"varint,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // contains filtered or unexported fields }
func (*Scene) Descriptor
deprecated
func (*Scene) GetContents ¶
func (x *Scene) GetContents() []*Scene_Content
func (*Scene) GetCreatedAt ¶
func (*Scene) GetDescription ¶
func (*Scene) GetKeyword ¶
func (*Scene) GetUpdatedAt ¶
func (*Scene) ProtoMessage ¶
func (*Scene) ProtoMessage()
func (*Scene) ProtoReflect ¶
func (x *Scene) ProtoReflect() protoreflect.Message
func (*Scene) Validate ¶
Validate checks the field values on Scene 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 (*Scene) ValidateAll ¶
ValidateAll checks the field values on Scene 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 SceneMultiError, or nil if none found.
type SceneMultiError ¶
type SceneMultiError []error
SceneMultiError is an error wrapping multiple validation errors returned by Scene.ValidateAll() if the designated constraints aren't met.
func (SceneMultiError) AllErrors ¶
func (m SceneMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SceneMultiError) Error ¶
func (m SceneMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SceneValidationError ¶
type SceneValidationError struct {
// contains filtered or unexported fields
}
SceneValidationError is the validation error returned by Scene.Validate if the designated constraints aren't met.
func (SceneValidationError) Cause ¶
func (e SceneValidationError) Cause() error
Cause function returns cause value.
func (SceneValidationError) Error ¶
func (e SceneValidationError) Error() string
Error satisfies the builtin error interface
func (SceneValidationError) ErrorName ¶
func (e SceneValidationError) ErrorName() string
ErrorName returns error name.
func (SceneValidationError) Field ¶
func (e SceneValidationError) Field() string
Field function returns field value.
func (SceneValidationError) Key ¶
func (e SceneValidationError) Key() bool
Key function returns key value.
func (SceneValidationError) Reason ¶
func (e SceneValidationError) Reason() string
Reason function returns reason value.
type Scene_Content ¶
type Scene_Content struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*Scene_Content) Descriptor
deprecated
func (*Scene_Content) Descriptor() ([]byte, []int)
Deprecated: Use Scene_Content.ProtoReflect.Descriptor instead.
func (*Scene_Content) GetId ¶
func (x *Scene_Content) GetId() uint32
func (*Scene_Content) GetName ¶
func (x *Scene_Content) GetName() string
func (*Scene_Content) ProtoMessage ¶
func (*Scene_Content) ProtoMessage()
func (*Scene_Content) ProtoReflect ¶
func (x *Scene_Content) ProtoReflect() protoreflect.Message
func (*Scene_Content) Reset ¶
func (x *Scene_Content) Reset()
func (*Scene_Content) String ¶
func (x *Scene_Content) String() string
func (*Scene_Content) Validate ¶
func (m *Scene_Content) Validate() error
Validate checks the field values on Scene_Content 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 (*Scene_Content) ValidateAll ¶
func (m *Scene_Content) ValidateAll() error
ValidateAll checks the field values on Scene_Content 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 Scene_ContentMultiError, or nil if none found.
type Scene_ContentMultiError ¶
type Scene_ContentMultiError []error
Scene_ContentMultiError is an error wrapping multiple validation errors returned by Scene_Content.ValidateAll() if the designated constraints aren't met.
func (Scene_ContentMultiError) AllErrors ¶
func (m Scene_ContentMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (Scene_ContentMultiError) Error ¶
func (m Scene_ContentMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type Scene_ContentValidationError ¶
type Scene_ContentValidationError struct {
// contains filtered or unexported fields
}
Scene_ContentValidationError is the validation error returned by Scene_Content.Validate if the designated constraints aren't met.
func (Scene_ContentValidationError) Cause ¶
func (e Scene_ContentValidationError) Cause() error
Cause function returns cause value.
func (Scene_ContentValidationError) Error ¶
func (e Scene_ContentValidationError) Error() string
Error satisfies the builtin error interface
func (Scene_ContentValidationError) ErrorName ¶
func (e Scene_ContentValidationError) ErrorName() string
ErrorName returns error name.
func (Scene_ContentValidationError) Field ¶
func (e Scene_ContentValidationError) Field() string
Field function returns field value.
func (Scene_ContentValidationError) Key ¶
func (e Scene_ContentValidationError) Key() bool
Key function returns key value.
func (Scene_ContentValidationError) Reason ¶
func (e Scene_ContentValidationError) Reason() string
Reason function returns reason value.
type ServiceClient ¶
type ServiceClient interface { // 获取分页协议 PageContent(ctx context.Context, in *PageContentRequest, opts ...grpc.CallOption) (*PageContentReply, error) // 获取协议的详细内容 GetContent(ctx context.Context, in *GetContentRequest, opts ...grpc.CallOption) (*Content, error) // 新增协议内容 AddContent(ctx context.Context, in *AddContentRequest, opts ...grpc.CallOption) (*AddContentReply, error) // 更新协议内容 UpdateContent(ctx context.Context, in *UpdateContentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // 删除指定的协议内容 DeleteContent(ctx context.Context, in *DeleteContentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // 获取分页协议场景 PageScene(ctx context.Context, in *PageSceneRequest, opts ...grpc.CallOption) (*PageSceneReply, error) // 获取指定的协议场景以及协议场景包含的协议列表 GetSceneByKeyword(ctx context.Context, in *GetSceneByKeywordRequest, opts ...grpc.CallOption) (*Scene, error) // 新增协议场景 AddScene(ctx context.Context, in *AddSceneRequest, opts ...grpc.CallOption) (*AddSceneReply, error) // 更新协议场景 UpdateScene(ctx context.Context, in *UpdateSceneRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // 删除协议场景 DeleteScene(ctx context.Context, in *DeleteSceneRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) }
ServiceClient is the client API for Service 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 NewServiceClient ¶
func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient
type ServiceHTTPClient ¶
type ServiceHTTPClient interface { AddContent(ctx context.Context, req *AddContentRequest, opts ...http.CallOption) (rsp *AddContentReply, err error) AddScene(ctx context.Context, req *AddSceneRequest, opts ...http.CallOption) (rsp *AddSceneReply, err error) DeleteContent(ctx context.Context, req *DeleteContentRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) DeleteScene(ctx context.Context, req *DeleteSceneRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) GetContent(ctx context.Context, req *GetContentRequest, opts ...http.CallOption) (rsp *Content, err error) GetSceneByKeyword(ctx context.Context, req *GetSceneByKeywordRequest, opts ...http.CallOption) (rsp *Scene, err error) PageContent(ctx context.Context, req *PageContentRequest, opts ...http.CallOption) (rsp *PageContentReply, err error) PageScene(ctx context.Context, req *PageSceneRequest, opts ...http.CallOption) (rsp *PageSceneReply, err error) UpdateContent(ctx context.Context, req *UpdateContentRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) UpdateScene(ctx context.Context, req *UpdateSceneRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error) }
func NewServiceHTTPClient ¶
func NewServiceHTTPClient(client *http.Client) ServiceHTTPClient
type ServiceHTTPClientImpl ¶
type ServiceHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*ServiceHTTPClientImpl) AddContent ¶
func (c *ServiceHTTPClientImpl) AddContent(ctx context.Context, in *AddContentRequest, opts ...http.CallOption) (*AddContentReply, error)
func (*ServiceHTTPClientImpl) AddScene ¶
func (c *ServiceHTTPClientImpl) AddScene(ctx context.Context, in *AddSceneRequest, opts ...http.CallOption) (*AddSceneReply, error)
func (*ServiceHTTPClientImpl) DeleteContent ¶
func (c *ServiceHTTPClientImpl) DeleteContent(ctx context.Context, in *DeleteContentRequest, opts ...http.CallOption) (*emptypb.Empty, error)
func (*ServiceHTTPClientImpl) DeleteScene ¶
func (c *ServiceHTTPClientImpl) DeleteScene(ctx context.Context, in *DeleteSceneRequest, opts ...http.CallOption) (*emptypb.Empty, error)
func (*ServiceHTTPClientImpl) GetContent ¶
func (c *ServiceHTTPClientImpl) GetContent(ctx context.Context, in *GetContentRequest, opts ...http.CallOption) (*Content, error)
func (*ServiceHTTPClientImpl) GetSceneByKeyword ¶
func (c *ServiceHTTPClientImpl) GetSceneByKeyword(ctx context.Context, in *GetSceneByKeywordRequest, opts ...http.CallOption) (*Scene, error)
func (*ServiceHTTPClientImpl) PageContent ¶
func (c *ServiceHTTPClientImpl) PageContent(ctx context.Context, in *PageContentRequest, opts ...http.CallOption) (*PageContentReply, error)
func (*ServiceHTTPClientImpl) PageScene ¶
func (c *ServiceHTTPClientImpl) PageScene(ctx context.Context, in *PageSceneRequest, opts ...http.CallOption) (*PageSceneReply, error)
func (*ServiceHTTPClientImpl) UpdateContent ¶
func (c *ServiceHTTPClientImpl) UpdateContent(ctx context.Context, in *UpdateContentRequest, opts ...http.CallOption) (*emptypb.Empty, error)
func (*ServiceHTTPClientImpl) UpdateScene ¶
func (c *ServiceHTTPClientImpl) UpdateScene(ctx context.Context, in *UpdateSceneRequest, opts ...http.CallOption) (*emptypb.Empty, error)
type ServiceHTTPServer ¶
type ServiceHTTPServer interface { // AddContent 新增协议内容 AddContent(context.Context, *AddContentRequest) (*AddContentReply, error) // AddScene 新增协议场景 AddScene(context.Context, *AddSceneRequest) (*AddSceneReply, error) // DeleteContent 删除指定的协议内容 DeleteContent(context.Context, *DeleteContentRequest) (*emptypb.Empty, error) // DeleteScene 删除协议场景 DeleteScene(context.Context, *DeleteSceneRequest) (*emptypb.Empty, error) // GetContent 获取协议的详细内容 GetContent(context.Context, *GetContentRequest) (*Content, error) // GetSceneByKeyword 获取指定的协议场景以及协议场景包含的协议列表 GetSceneByKeyword(context.Context, *GetSceneByKeywordRequest) (*Scene, error) // PageContent 获取分页协议 PageContent(context.Context, *PageContentRequest) (*PageContentReply, error) // PageScene 获取分页协议场景 PageScene(context.Context, *PageSceneRequest) (*PageSceneReply, error) // UpdateContent 更新协议内容 UpdateContent(context.Context, *UpdateContentRequest) (*emptypb.Empty, error) // UpdateScene 更新协议场景 UpdateScene(context.Context, *UpdateSceneRequest) (*emptypb.Empty, error) }
type ServiceServer ¶
type ServiceServer interface { // 获取分页协议 PageContent(context.Context, *PageContentRequest) (*PageContentReply, error) // 获取协议的详细内容 GetContent(context.Context, *GetContentRequest) (*Content, error) // 新增协议内容 AddContent(context.Context, *AddContentRequest) (*AddContentReply, error) // 更新协议内容 UpdateContent(context.Context, *UpdateContentRequest) (*emptypb.Empty, error) // 删除指定的协议内容 DeleteContent(context.Context, *DeleteContentRequest) (*emptypb.Empty, error) // 获取分页协议场景 PageScene(context.Context, *PageSceneRequest) (*PageSceneReply, error) // 获取指定的协议场景以及协议场景包含的协议列表 GetSceneByKeyword(context.Context, *GetSceneByKeywordRequest) (*Scene, error) // 新增协议场景 AddScene(context.Context, *AddSceneRequest) (*AddSceneReply, error) // 更新协议场景 UpdateScene(context.Context, *UpdateSceneRequest) (*emptypb.Empty, error) // 删除协议场景 DeleteScene(context.Context, *DeleteSceneRequest) (*emptypb.Empty, error) // contains filtered or unexported methods }
ServiceServer is the server API for Service service. All implementations must embed UnimplementedServiceServer for forward compatibility
type UnimplementedServiceServer ¶
type UnimplementedServiceServer struct { }
UnimplementedServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedServiceServer) AddContent ¶
func (UnimplementedServiceServer) AddContent(context.Context, *AddContentRequest) (*AddContentReply, error)
func (UnimplementedServiceServer) AddScene ¶
func (UnimplementedServiceServer) AddScene(context.Context, *AddSceneRequest) (*AddSceneReply, error)
func (UnimplementedServiceServer) DeleteContent ¶
func (UnimplementedServiceServer) DeleteContent(context.Context, *DeleteContentRequest) (*emptypb.Empty, error)
func (UnimplementedServiceServer) DeleteScene ¶
func (UnimplementedServiceServer) DeleteScene(context.Context, *DeleteSceneRequest) (*emptypb.Empty, error)
func (UnimplementedServiceServer) GetContent ¶
func (UnimplementedServiceServer) GetContent(context.Context, *GetContentRequest) (*Content, error)
func (UnimplementedServiceServer) GetSceneByKeyword ¶
func (UnimplementedServiceServer) GetSceneByKeyword(context.Context, *GetSceneByKeywordRequest) (*Scene, error)
func (UnimplementedServiceServer) PageContent ¶
func (UnimplementedServiceServer) PageContent(context.Context, *PageContentRequest) (*PageContentReply, error)
func (UnimplementedServiceServer) PageScene ¶
func (UnimplementedServiceServer) PageScene(context.Context, *PageSceneRequest) (*PageSceneReply, error)
func (UnimplementedServiceServer) UpdateContent ¶
func (UnimplementedServiceServer) UpdateContent(context.Context, *UpdateContentRequest) (*emptypb.Empty, error)
func (UnimplementedServiceServer) UpdateScene ¶
func (UnimplementedServiceServer) UpdateScene(context.Context, *UpdateSceneRequest) (*emptypb.Empty, error)
type UnsafeServiceServer ¶
type UnsafeServiceServer interface {
// contains filtered or unexported methods
}
UnsafeServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServiceServer will result in compilation errors.
type UpdateContentRequest ¶
type UpdateContentRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Status *bool `protobuf:"varint,3,opt,name=status,proto3,oneof" json:"status,omitempty"` Content string `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"` Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` // contains filtered or unexported fields }
func (*UpdateContentRequest) Descriptor
deprecated
func (*UpdateContentRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateContentRequest.ProtoReflect.Descriptor instead.
func (*UpdateContentRequest) GetContent ¶
func (x *UpdateContentRequest) GetContent() string
func (*UpdateContentRequest) GetDescription ¶
func (x *UpdateContentRequest) GetDescription() string
func (*UpdateContentRequest) GetId ¶
func (x *UpdateContentRequest) GetId() uint32
func (*UpdateContentRequest) GetName ¶
func (x *UpdateContentRequest) GetName() string
func (*UpdateContentRequest) GetStatus ¶
func (x *UpdateContentRequest) GetStatus() bool
func (*UpdateContentRequest) ProtoMessage ¶
func (*UpdateContentRequest) ProtoMessage()
func (*UpdateContentRequest) ProtoReflect ¶
func (x *UpdateContentRequest) ProtoReflect() protoreflect.Message
func (*UpdateContentRequest) Reset ¶
func (x *UpdateContentRequest) Reset()
func (*UpdateContentRequest) String ¶
func (x *UpdateContentRequest) String() string
func (*UpdateContentRequest) Validate ¶
func (m *UpdateContentRequest) Validate() error
Validate checks the field values on UpdateContentRequest 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 (*UpdateContentRequest) ValidateAll ¶
func (m *UpdateContentRequest) ValidateAll() error
ValidateAll checks the field values on UpdateContentRequest 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 UpdateContentRequestMultiError, or nil if none found.
type UpdateContentRequestMultiError ¶
type UpdateContentRequestMultiError []error
UpdateContentRequestMultiError is an error wrapping multiple validation errors returned by UpdateContentRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateContentRequestMultiError) AllErrors ¶
func (m UpdateContentRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateContentRequestMultiError) Error ¶
func (m UpdateContentRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateContentRequestValidationError ¶
type UpdateContentRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateContentRequestValidationError is the validation error returned by UpdateContentRequest.Validate if the designated constraints aren't met.
func (UpdateContentRequestValidationError) Cause ¶
func (e UpdateContentRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateContentRequestValidationError) Error ¶
func (e UpdateContentRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateContentRequestValidationError) ErrorName ¶
func (e UpdateContentRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateContentRequestValidationError) Field ¶
func (e UpdateContentRequestValidationError) Field() string
Field function returns field value.
func (UpdateContentRequestValidationError) Key ¶
func (e UpdateContentRequestValidationError) Key() bool
Key function returns key value.
func (UpdateContentRequestValidationError) Reason ¶
func (e UpdateContentRequestValidationError) Reason() string
Reason function returns reason value.
type UpdateSceneRequest ¶
type UpdateSceneRequest struct { Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Keyword string `protobuf:"bytes,2,opt,name=keyword,proto3" json:"keyword,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` ContentIds []uint32 `protobuf:"varint,5,rep,packed,name=content_ids,json=contentIds,proto3" json:"content_ids,omitempty"` // contains filtered or unexported fields }
func (*UpdateSceneRequest) Descriptor
deprecated
func (*UpdateSceneRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateSceneRequest.ProtoReflect.Descriptor instead.
func (*UpdateSceneRequest) GetContentIds ¶
func (x *UpdateSceneRequest) GetContentIds() []uint32
func (*UpdateSceneRequest) GetDescription ¶
func (x *UpdateSceneRequest) GetDescription() string
func (*UpdateSceneRequest) GetId ¶
func (x *UpdateSceneRequest) GetId() uint32
func (*UpdateSceneRequest) GetKeyword ¶
func (x *UpdateSceneRequest) GetKeyword() string
func (*UpdateSceneRequest) GetName ¶
func (x *UpdateSceneRequest) GetName() string
func (*UpdateSceneRequest) ProtoMessage ¶
func (*UpdateSceneRequest) ProtoMessage()
func (*UpdateSceneRequest) ProtoReflect ¶
func (x *UpdateSceneRequest) ProtoReflect() protoreflect.Message
func (*UpdateSceneRequest) Reset ¶
func (x *UpdateSceneRequest) Reset()
func (*UpdateSceneRequest) String ¶
func (x *UpdateSceneRequest) String() string
func (*UpdateSceneRequest) Validate ¶
func (m *UpdateSceneRequest) Validate() error
Validate checks the field values on UpdateSceneRequest 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 (*UpdateSceneRequest) ValidateAll ¶
func (m *UpdateSceneRequest) ValidateAll() error
ValidateAll checks the field values on UpdateSceneRequest 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 UpdateSceneRequestMultiError, or nil if none found.
type UpdateSceneRequestMultiError ¶
type UpdateSceneRequestMultiError []error
UpdateSceneRequestMultiError is an error wrapping multiple validation errors returned by UpdateSceneRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateSceneRequestMultiError) AllErrors ¶
func (m UpdateSceneRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateSceneRequestMultiError) Error ¶
func (m UpdateSceneRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateSceneRequestValidationError ¶
type UpdateSceneRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateSceneRequestValidationError is the validation error returned by UpdateSceneRequest.Validate if the designated constraints aren't met.
func (UpdateSceneRequestValidationError) Cause ¶
func (e UpdateSceneRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateSceneRequestValidationError) Error ¶
func (e UpdateSceneRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateSceneRequestValidationError) ErrorName ¶
func (e UpdateSceneRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateSceneRequestValidationError) Field ¶
func (e UpdateSceneRequestValidationError) Field() string
Field function returns field value.
func (UpdateSceneRequestValidationError) Key ¶
func (e UpdateSceneRequestValidationError) Key() bool
Key function returns key value.
func (UpdateSceneRequestValidationError) Reason ¶
func (e UpdateSceneRequestValidationError) Reason() string
Reason function returns reason value.
Source Files ¶
- user_center_agreement_content.pb.go
- user_center_agreement_content.pb.validate.go
- user_center_agreement_scene.pb.go
- user_center_agreement_scene.pb.validate.go
- user_center_agreement_service.pb.go
- user_center_agreement_service.pb.validate.go
- user_center_agreement_service_grpc.pb.go
- user_center_agreement_service_http.pb.go