Documentation ¶
Index ¶
- Constants
- Variables
- func ErrorMenuNameDuplicate(format string, args ...interface{}) *errors.Error
- func ErrorMenuNameDuplicateLocalized(localizer *i18n.Localizer, data map[string]interface{}, ...) *errors.Error
- func ErrorMenuPreserved(format string, args ...interface{}) *errors.Error
- func ErrorMenuPreservedLocalized(localizer *i18n.Localizer, data map[string]interface{}, ...) *errors.Error
- func IsMenuNameDuplicate(err error) bool
- func IsMenuPreserved(err error) bool
- func RegisterMenuServiceHTTPServer(s *http.Server, srv MenuServiceHTTPServer)
- func RegisterMenuServiceServer(s grpc.ServiceRegistrar, srv MenuServiceServer)
- type CreateMenuRequest
- func (*CreateMenuRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateMenuRequest) GetComponent() string
- func (x *CreateMenuRequest) GetDesc() string
- func (x *CreateMenuRequest) GetFullPath() string
- func (x *CreateMenuRequest) GetIcon() string
- func (x *CreateMenuRequest) GetIframe() string
- func (x *CreateMenuRequest) GetIgnoreAuth() bool
- func (x *CreateMenuRequest) GetMeta() *structpb.Struct
- func (x *CreateMenuRequest) GetMicroApp() string
- func (x *CreateMenuRequest) GetMicroAppBaseRoute() string
- func (x *CreateMenuRequest) GetMicroAppDev() string
- func (x *CreateMenuRequest) GetMicroAppName() string
- func (x *CreateMenuRequest) GetName() string
- func (x *CreateMenuRequest) GetParent() string
- func (x *CreateMenuRequest) GetPath() string
- func (x *CreateMenuRequest) GetPriority() int32
- func (x *CreateMenuRequest) GetProps() *structpb.Struct
- func (x *CreateMenuRequest) GetRedirect() string
- func (x *CreateMenuRequest) GetRequirement() []*v1.PermissionRequirement
- func (x *CreateMenuRequest) GetTitle() string
- func (*CreateMenuRequest) ProtoMessage()
- func (x *CreateMenuRequest) ProtoReflect() protoreflect.Message
- func (x *CreateMenuRequest) Reset()
- func (x *CreateMenuRequest) String() string
- func (m *CreateMenuRequest) Validate() error
- func (m *CreateMenuRequest) ValidateAll() error
- type CreateMenuRequestMultiError
- type CreateMenuRequestValidationError
- func (e CreateMenuRequestValidationError) Cause() error
- func (e CreateMenuRequestValidationError) Error() string
- func (e CreateMenuRequestValidationError) ErrorName() string
- func (e CreateMenuRequestValidationError) Field() string
- func (e CreateMenuRequestValidationError) Key() bool
- func (e CreateMenuRequestValidationError) Reason() string
- type DeleteMenuReply
- func (*DeleteMenuReply) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteMenuReply) GetId() string
- func (x *DeleteMenuReply) GetName() string
- func (*DeleteMenuReply) ProtoMessage()
- func (x *DeleteMenuReply) ProtoReflect() protoreflect.Message
- func (x *DeleteMenuReply) Reset()
- func (x *DeleteMenuReply) String() string
- func (m *DeleteMenuReply) Validate() error
- func (m *DeleteMenuReply) ValidateAll() error
- type DeleteMenuReplyMultiError
- type DeleteMenuReplyValidationError
- func (e DeleteMenuReplyValidationError) Cause() error
- func (e DeleteMenuReplyValidationError) Error() string
- func (e DeleteMenuReplyValidationError) ErrorName() string
- func (e DeleteMenuReplyValidationError) Field() string
- func (e DeleteMenuReplyValidationError) Key() bool
- func (e DeleteMenuReplyValidationError) Reason() string
- type DeleteMenuRequest
- func (*DeleteMenuRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteMenuRequest) GetId() string
- func (*DeleteMenuRequest) ProtoMessage()
- func (x *DeleteMenuRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteMenuRequest) Reset()
- func (x *DeleteMenuRequest) String() string
- func (m *DeleteMenuRequest) Validate() error
- func (m *DeleteMenuRequest) ValidateAll() error
- type DeleteMenuRequestMultiError
- type DeleteMenuRequestValidationError
- func (e DeleteMenuRequestValidationError) Cause() error
- func (e DeleteMenuRequestValidationError) Error() string
- func (e DeleteMenuRequestValidationError) ErrorName() string
- func (e DeleteMenuRequestValidationError) Field() string
- func (e DeleteMenuRequestValidationError) Key() bool
- func (e DeleteMenuRequestValidationError) Reason() string
- type ErrorReason
- func (ErrorReason) Descriptor() protoreflect.EnumDescriptor
- func (x ErrorReason) Enum() *ErrorReason
- func (ErrorReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x ErrorReason) Number() protoreflect.EnumNumber
- func (x ErrorReason) String() string
- func (ErrorReason) Type() protoreflect.EnumType
- type GetAvailableMenusReply
- func (*GetAvailableMenusReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetAvailableMenusReply) GetItems() []*Menu
- func (*GetAvailableMenusReply) ProtoMessage()
- func (x *GetAvailableMenusReply) ProtoReflect() protoreflect.Message
- func (x *GetAvailableMenusReply) Reset()
- func (x *GetAvailableMenusReply) String() string
- func (m *GetAvailableMenusReply) Validate() error
- func (m *GetAvailableMenusReply) ValidateAll() error
- type GetAvailableMenusReplyMultiError
- type GetAvailableMenusReplyValidationError
- func (e GetAvailableMenusReplyValidationError) Cause() error
- func (e GetAvailableMenusReplyValidationError) Error() string
- func (e GetAvailableMenusReplyValidationError) ErrorName() string
- func (e GetAvailableMenusReplyValidationError) Field() string
- func (e GetAvailableMenusReplyValidationError) Key() bool
- func (e GetAvailableMenusReplyValidationError) Reason() string
- type GetAvailableMenusRequest
- func (*GetAvailableMenusRequest) Descriptor() ([]byte, []int)deprecated
- func (*GetAvailableMenusRequest) ProtoMessage()
- func (x *GetAvailableMenusRequest) ProtoReflect() protoreflect.Message
- func (x *GetAvailableMenusRequest) Reset()
- func (x *GetAvailableMenusRequest) String() string
- func (m *GetAvailableMenusRequest) Validate() error
- func (m *GetAvailableMenusRequest) ValidateAll() error
- type GetAvailableMenusRequestMultiError
- type GetAvailableMenusRequestValidationError
- func (e GetAvailableMenusRequestValidationError) Cause() error
- func (e GetAvailableMenusRequestValidationError) Error() string
- func (e GetAvailableMenusRequestValidationError) ErrorName() string
- func (e GetAvailableMenusRequestValidationError) Field() string
- func (e GetAvailableMenusRequestValidationError) Key() bool
- func (e GetAvailableMenusRequestValidationError) Reason() string
- type GetMenuRequest
- func (*GetMenuRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetMenuRequest) GetId() string
- func (*GetMenuRequest) ProtoMessage()
- func (x *GetMenuRequest) ProtoReflect() protoreflect.Message
- func (x *GetMenuRequest) Reset()
- func (x *GetMenuRequest) String() string
- func (m *GetMenuRequest) Validate() error
- func (m *GetMenuRequest) ValidateAll() error
- type GetMenuRequestMultiError
- type GetMenuRequestValidationError
- func (e GetMenuRequestValidationError) Cause() error
- func (e GetMenuRequestValidationError) Error() string
- func (e GetMenuRequestValidationError) ErrorName() string
- func (e GetMenuRequestValidationError) Field() string
- func (e GetMenuRequestValidationError) Key() bool
- func (e GetMenuRequestValidationError) Reason() string
- type ListMenuReply
- func (*ListMenuReply) Descriptor() ([]byte, []int)deprecated
- func (x *ListMenuReply) GetFilterSize() int32
- func (x *ListMenuReply) GetItems() []*Menu
- func (x *ListMenuReply) GetTotalSize() int32
- func (*ListMenuReply) ProtoMessage()
- func (x *ListMenuReply) ProtoReflect() protoreflect.Message
- func (x *ListMenuReply) Reset()
- func (x *ListMenuReply) String() string
- func (m *ListMenuReply) Validate() error
- func (m *ListMenuReply) ValidateAll() error
- type ListMenuReplyMultiError
- type ListMenuReplyValidationError
- func (e ListMenuReplyValidationError) Cause() error
- func (e ListMenuReplyValidationError) Error() string
- func (e ListMenuReplyValidationError) ErrorName() string
- func (e ListMenuReplyValidationError) Field() string
- func (e ListMenuReplyValidationError) Key() bool
- func (e ListMenuReplyValidationError) Reason() string
- type ListMenuRequest
- func (*ListMenuRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListMenuRequest) GetFields() *fieldmaskpb.FieldMask
- func (x *ListMenuRequest) GetFilter() *MenuFilter
- func (x *ListMenuRequest) GetPageOffset() int32
- func (x *ListMenuRequest) GetPageSize() int32
- func (x *ListMenuRequest) GetSearch() string
- func (x *ListMenuRequest) GetSort() []string
- func (*ListMenuRequest) ProtoMessage()
- func (x *ListMenuRequest) ProtoReflect() protoreflect.Message
- func (x *ListMenuRequest) Reset()
- func (x *ListMenuRequest) String() string
- func (m *ListMenuRequest) Validate() error
- func (m *ListMenuRequest) ValidateAll() error
- type ListMenuRequestMultiError
- type ListMenuRequestValidationError
- func (e ListMenuRequestValidationError) Cause() error
- func (e ListMenuRequestValidationError) Error() string
- func (e ListMenuRequestValidationError) ErrorName() string
- func (e ListMenuRequestValidationError) Field() string
- func (e ListMenuRequestValidationError) Key() bool
- func (e ListMenuRequestValidationError) Reason() string
- type Menu
- func (*Menu) Descriptor() ([]byte, []int)deprecated
- func (x *Menu) GetComponent() string
- func (x *Menu) GetCreatedAt() *timestamppb.Timestamp
- func (x *Menu) GetDesc() string
- func (x *Menu) GetFullPath() string
- func (x *Menu) GetIcon() string
- func (x *Menu) GetId() string
- func (x *Menu) GetIframe() string
- func (x *Menu) GetIgnoreAuth() bool
- func (x *Menu) GetMeta() *structpb.Struct
- func (x *Menu) GetMicroApp() string
- func (x *Menu) GetMicroAppBaseRoute() string
- func (x *Menu) GetMicroAppDev() string
- func (x *Menu) GetMicroAppName() string
- func (x *Menu) GetName() string
- func (x *Menu) GetParent() string
- func (x *Menu) GetPath() string
- func (x *Menu) GetPriority() int32
- func (x *Menu) GetProps() *structpb.Struct
- func (x *Menu) GetRedirect() string
- func (x *Menu) GetRequirement() []*v1.PermissionRequirement
- func (x *Menu) GetTitle() string
- func (*Menu) ProtoMessage()
- func (x *Menu) ProtoReflect() protoreflect.Message
- func (x *Menu) Reset()
- func (x *Menu) String() string
- func (m *Menu) Validate() error
- func (m *Menu) ValidateAll() error
- type MenuFilter
- func (*MenuFilter) Descriptor() ([]byte, []int)deprecated
- func (x *MenuFilter) GetId() *query.StringFilterOperation
- func (x *MenuFilter) GetName() *query.StringFilterOperation
- func (x *MenuFilter) GetParent() *query.StringFilterOperation
- func (*MenuFilter) ProtoMessage()
- func (x *MenuFilter) ProtoReflect() protoreflect.Message
- func (x *MenuFilter) Reset()
- func (x *MenuFilter) String() string
- func (m *MenuFilter) Validate() error
- func (m *MenuFilter) ValidateAll() error
- type MenuFilterMultiError
- type MenuFilterValidationError
- type MenuMultiError
- type MenuServiceClient
- type MenuServiceHTTPClient
- type MenuServiceHTTPClientImpl
- func (c *MenuServiceHTTPClientImpl) CreateMenu(ctx context.Context, in *CreateMenuRequest, opts ...http.CallOption) (*Menu, error)
- func (c *MenuServiceHTTPClientImpl) DeleteMenu(ctx context.Context, in *DeleteMenuRequest, opts ...http.CallOption) (*DeleteMenuReply, error)
- func (c *MenuServiceHTTPClientImpl) GetAvailableMenus(ctx context.Context, in *GetAvailableMenusRequest, opts ...http.CallOption) (*GetAvailableMenusReply, error)
- func (c *MenuServiceHTTPClientImpl) GetMenu(ctx context.Context, in *GetMenuRequest, opts ...http.CallOption) (*Menu, error)
- func (c *MenuServiceHTTPClientImpl) ListMenu(ctx context.Context, in *ListMenuRequest, opts ...http.CallOption) (*ListMenuReply, error)
- func (c *MenuServiceHTTPClientImpl) UpdateMenu(ctx context.Context, in *UpdateMenuRequest, opts ...http.CallOption) (*Menu, error)
- type MenuServiceHTTPServer
- type MenuServiceServer
- type MenuValidationError
- type UnimplementedMenuServiceServer
- func (UnimplementedMenuServiceServer) CreateMenu(context.Context, *CreateMenuRequest) (*Menu, error)
- func (UnimplementedMenuServiceServer) DeleteMenu(context.Context, *DeleteMenuRequest) (*DeleteMenuReply, error)
- func (UnimplementedMenuServiceServer) GetAvailableMenus(context.Context, *GetAvailableMenusRequest) (*GetAvailableMenusReply, error)
- func (UnimplementedMenuServiceServer) GetMenu(context.Context, *GetMenuRequest) (*Menu, error)
- func (UnimplementedMenuServiceServer) ListMenu(context.Context, *ListMenuRequest) (*ListMenuReply, error)
- func (UnimplementedMenuServiceServer) UpdateMenu(context.Context, *UpdateMenuRequest) (*Menu, error)
- type UnsafeMenuServiceServer
- type UpdateMenu
- func (*UpdateMenu) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateMenu) GetComponent() string
- func (x *UpdateMenu) GetDesc() string
- func (x *UpdateMenu) GetFullPath() string
- func (x *UpdateMenu) GetIcon() string
- func (x *UpdateMenu) GetId() string
- func (x *UpdateMenu) GetIframe() string
- func (x *UpdateMenu) GetIgnoreAuth() bool
- func (x *UpdateMenu) GetMeta() *structpb.Struct
- func (x *UpdateMenu) GetMicroApp() string
- func (x *UpdateMenu) GetMicroAppBaseRoute() string
- func (x *UpdateMenu) GetMicroAppDev() string
- func (x *UpdateMenu) GetMicroAppName() string
- func (x *UpdateMenu) GetName() string
- func (x *UpdateMenu) GetParent() string
- func (x *UpdateMenu) GetPath() string
- func (x *UpdateMenu) GetPriority() int32
- func (x *UpdateMenu) GetProps() *structpb.Struct
- func (x *UpdateMenu) GetRedirect() string
- func (x *UpdateMenu) GetRequirement() []*v1.PermissionRequirement
- func (x *UpdateMenu) GetTitle() string
- func (*UpdateMenu) ProtoMessage()
- func (x *UpdateMenu) ProtoReflect() protoreflect.Message
- func (x *UpdateMenu) Reset()
- func (x *UpdateMenu) String() string
- func (m *UpdateMenu) Validate() error
- func (m *UpdateMenu) ValidateAll() error
- type UpdateMenuMultiError
- type UpdateMenuRequest
- func (*UpdateMenuRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateMenuRequest) GetMenu() *UpdateMenu
- func (x *UpdateMenuRequest) GetUpdateMask() *fieldmaskpb.FieldMask
- func (*UpdateMenuRequest) ProtoMessage()
- func (x *UpdateMenuRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateMenuRequest) Reset()
- func (x *UpdateMenuRequest) String() string
- func (m *UpdateMenuRequest) Validate() error
- func (m *UpdateMenuRequest) ValidateAll() error
- type UpdateMenuRequestMultiError
- type UpdateMenuRequestValidationError
- func (e UpdateMenuRequestValidationError) Cause() error
- func (e UpdateMenuRequestValidationError) Error() string
- func (e UpdateMenuRequestValidationError) ErrorName() string
- func (e UpdateMenuRequestValidationError) Field() string
- func (e UpdateMenuRequestValidationError) Key() bool
- func (e UpdateMenuRequestValidationError) Reason() string
- type UpdateMenuValidationError
Constants ¶
const OperationMenuServiceCreateMenu = "/sys.api.menu.v1.MenuService/CreateMenu"
const OperationMenuServiceDeleteMenu = "/sys.api.menu.v1.MenuService/DeleteMenu"
const OperationMenuServiceGetAvailableMenus = "/sys.api.menu.v1.MenuService/GetAvailableMenus"
const OperationMenuServiceGetMenu = "/sys.api.menu.v1.MenuService/GetMenu"
const OperationMenuServiceListMenu = "/sys.api.menu.v1.MenuService/ListMenu"
const OperationMenuServiceUpdateMenu = "/sys.api.menu.v1.MenuService/UpdateMenu"
Variables ¶
var ( ErrorReason_name = map[int32]string{ 0: "MENU_NAME_DUPLICATE", 1: "MENU_PRESERVED", } ErrorReason_value = map[string]int32{ "MENU_NAME_DUPLICATE": 0, "MENU_PRESERVED": 1, } )
Enum value maps for ErrorReason.
var MenuService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "sys.api.menu.v1.MenuService", HandlerType: (*MenuServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListMenu", Handler: _MenuService_ListMenu_Handler, }, { MethodName: "GetMenu", Handler: _MenuService_GetMenu_Handler, }, { MethodName: "CreateMenu", Handler: _MenuService_CreateMenu_Handler, }, { MethodName: "UpdateMenu", Handler: _MenuService_UpdateMenu_Handler, }, { MethodName: "DeleteMenu", Handler: _MenuService_DeleteMenu_Handler, }, { MethodName: "GetAvailableMenus", Handler: _MenuService_GetAvailableMenus_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "sys/api/menu/v1/menu.proto", }
MenuService_ServiceDesc is the grpc.ServiceDesc for MenuService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func ErrorMenuNameDuplicate ¶
func ErrorMenuPreserved ¶
func IsMenuNameDuplicate ¶
func IsMenuPreserved ¶
func RegisterMenuServiceHTTPServer ¶
func RegisterMenuServiceHTTPServer(s *http.Server, srv MenuServiceHTTPServer)
func RegisterMenuServiceServer ¶
func RegisterMenuServiceServer(s grpc.ServiceRegistrar, srv MenuServiceServer)
Types ¶
type CreateMenuRequest ¶
type CreateMenuRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Desc string `protobuf:"bytes,5,opt,name=desc,proto3" json:"desc,omitempty"` Component string `protobuf:"bytes,6,opt,name=component,proto3" json:"component,omitempty"` Requirement []*v1.PermissionRequirement `protobuf:"bytes,7,rep,name=requirement,proto3" json:"requirement,omitempty"` //parent menu Parent string `protobuf:"bytes,8,opt,name=parent,proto3" json:"parent,omitempty"` Props *structpb.Struct `protobuf:"bytes,9,opt,name=props,proto3" json:"props,omitempty"` FullPath string `protobuf:"bytes,10,opt,name=full_path,json=fullPath,proto3" json:"full_path,omitempty"` Priority int32 `protobuf:"varint,11,opt,name=priority,proto3" json:"priority,omitempty"` IgnoreAuth bool `protobuf:"varint,12,opt,name=ignore_auth,json=ignoreAuth,proto3" json:"ignore_auth,omitempty"` Icon string `protobuf:"bytes,13,opt,name=icon,proto3" json:"icon,omitempty"` Iframe string `protobuf:"bytes,14,opt,name=iframe,proto3" json:"iframe,omitempty"` MicroApp string `protobuf:"bytes,15,opt,name=micro_app,json=microApp,proto3" json:"micro_app,omitempty"` Meta *structpb.Struct `protobuf:"bytes,16,opt,name=meta,proto3" json:"meta,omitempty"` Title string `protobuf:"bytes,17,opt,name=title,proto3" json:"title,omitempty"` Path string `protobuf:"bytes,18,opt,name=path,proto3" json:"path,omitempty"` Redirect string `protobuf:"bytes,19,opt,name=redirect,proto3" json:"redirect,omitempty"` MicroAppName string `protobuf:"bytes,20,opt,name=micro_app_name,json=microAppName,proto3" json:"micro_app_name,omitempty"` MicroAppBaseRoute string `protobuf:"bytes,21,opt,name=micro_app_base_route,json=microAppBaseRoute,proto3" json:"micro_app_base_route,omitempty"` MicroAppDev string `protobuf:"bytes,22,opt,name=micro_app_dev,json=microAppDev,proto3" json:"micro_app_dev,omitempty"` // contains filtered or unexported fields }
func (*CreateMenuRequest) Descriptor
deprecated
func (*CreateMenuRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateMenuRequest.ProtoReflect.Descriptor instead.
func (*CreateMenuRequest) GetComponent ¶
func (x *CreateMenuRequest) GetComponent() string
func (*CreateMenuRequest) GetDesc ¶
func (x *CreateMenuRequest) GetDesc() string
func (*CreateMenuRequest) GetFullPath ¶
func (x *CreateMenuRequest) GetFullPath() string
func (*CreateMenuRequest) GetIcon ¶
func (x *CreateMenuRequest) GetIcon() string
func (*CreateMenuRequest) GetIframe ¶
func (x *CreateMenuRequest) GetIframe() string
func (*CreateMenuRequest) GetIgnoreAuth ¶
func (x *CreateMenuRequest) GetIgnoreAuth() bool
func (*CreateMenuRequest) GetMeta ¶
func (x *CreateMenuRequest) GetMeta() *structpb.Struct
func (*CreateMenuRequest) GetMicroApp ¶
func (x *CreateMenuRequest) GetMicroApp() string
func (*CreateMenuRequest) GetMicroAppBaseRoute ¶
func (x *CreateMenuRequest) GetMicroAppBaseRoute() string
func (*CreateMenuRequest) GetMicroAppDev ¶
func (x *CreateMenuRequest) GetMicroAppDev() string
func (*CreateMenuRequest) GetMicroAppName ¶
func (x *CreateMenuRequest) GetMicroAppName() string
func (*CreateMenuRequest) GetName ¶
func (x *CreateMenuRequest) GetName() string
func (*CreateMenuRequest) GetParent ¶
func (x *CreateMenuRequest) GetParent() string
func (*CreateMenuRequest) GetPath ¶
func (x *CreateMenuRequest) GetPath() string
func (*CreateMenuRequest) GetPriority ¶
func (x *CreateMenuRequest) GetPriority() int32
func (*CreateMenuRequest) GetProps ¶
func (x *CreateMenuRequest) GetProps() *structpb.Struct
func (*CreateMenuRequest) GetRedirect ¶
func (x *CreateMenuRequest) GetRedirect() string
func (*CreateMenuRequest) GetRequirement ¶
func (x *CreateMenuRequest) GetRequirement() []*v1.PermissionRequirement
func (*CreateMenuRequest) GetTitle ¶
func (x *CreateMenuRequest) GetTitle() string
func (*CreateMenuRequest) ProtoMessage ¶
func (*CreateMenuRequest) ProtoMessage()
func (*CreateMenuRequest) ProtoReflect ¶
func (x *CreateMenuRequest) ProtoReflect() protoreflect.Message
func (*CreateMenuRequest) Reset ¶
func (x *CreateMenuRequest) Reset()
func (*CreateMenuRequest) String ¶
func (x *CreateMenuRequest) String() string
func (*CreateMenuRequest) Validate ¶
func (m *CreateMenuRequest) Validate() error
Validate checks the field values on CreateMenuRequest 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 (*CreateMenuRequest) ValidateAll ¶
func (m *CreateMenuRequest) ValidateAll() error
ValidateAll checks the field values on CreateMenuRequest 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 CreateMenuRequestMultiError, or nil if none found.
type CreateMenuRequestMultiError ¶
type CreateMenuRequestMultiError []error
CreateMenuRequestMultiError is an error wrapping multiple validation errors returned by CreateMenuRequest.ValidateAll() if the designated constraints aren't met.
func (CreateMenuRequestMultiError) AllErrors ¶
func (m CreateMenuRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateMenuRequestMultiError) Error ¶
func (m CreateMenuRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateMenuRequestValidationError ¶
type CreateMenuRequestValidationError struct {
// contains filtered or unexported fields
}
CreateMenuRequestValidationError is the validation error returned by CreateMenuRequest.Validate if the designated constraints aren't met.
func (CreateMenuRequestValidationError) Cause ¶
func (e CreateMenuRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateMenuRequestValidationError) Error ¶
func (e CreateMenuRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateMenuRequestValidationError) ErrorName ¶
func (e CreateMenuRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateMenuRequestValidationError) Field ¶
func (e CreateMenuRequestValidationError) Field() string
Field function returns field value.
func (CreateMenuRequestValidationError) Key ¶
func (e CreateMenuRequestValidationError) Key() bool
Key function returns key value.
func (CreateMenuRequestValidationError) Reason ¶
func (e CreateMenuRequestValidationError) Reason() string
Reason function returns reason value.
type DeleteMenuReply ¶
type DeleteMenuReply struct { Id string `protobuf:"bytes,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 (*DeleteMenuReply) Descriptor
deprecated
func (*DeleteMenuReply) Descriptor() ([]byte, []int)
Deprecated: Use DeleteMenuReply.ProtoReflect.Descriptor instead.
func (*DeleteMenuReply) GetId ¶
func (x *DeleteMenuReply) GetId() string
func (*DeleteMenuReply) GetName ¶
func (x *DeleteMenuReply) GetName() string
func (*DeleteMenuReply) ProtoMessage ¶
func (*DeleteMenuReply) ProtoMessage()
func (*DeleteMenuReply) ProtoReflect ¶
func (x *DeleteMenuReply) ProtoReflect() protoreflect.Message
func (*DeleteMenuReply) Reset ¶
func (x *DeleteMenuReply) Reset()
func (*DeleteMenuReply) String ¶
func (x *DeleteMenuReply) String() string
func (*DeleteMenuReply) Validate ¶
func (m *DeleteMenuReply) Validate() error
Validate checks the field values on DeleteMenuReply 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 (*DeleteMenuReply) ValidateAll ¶
func (m *DeleteMenuReply) ValidateAll() error
ValidateAll checks the field values on DeleteMenuReply 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 DeleteMenuReplyMultiError, or nil if none found.
type DeleteMenuReplyMultiError ¶
type DeleteMenuReplyMultiError []error
DeleteMenuReplyMultiError is an error wrapping multiple validation errors returned by DeleteMenuReply.ValidateAll() if the designated constraints aren't met.
func (DeleteMenuReplyMultiError) AllErrors ¶
func (m DeleteMenuReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteMenuReplyMultiError) Error ¶
func (m DeleteMenuReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteMenuReplyValidationError ¶
type DeleteMenuReplyValidationError struct {
// contains filtered or unexported fields
}
DeleteMenuReplyValidationError is the validation error returned by DeleteMenuReply.Validate if the designated constraints aren't met.
func (DeleteMenuReplyValidationError) Cause ¶
func (e DeleteMenuReplyValidationError) Cause() error
Cause function returns cause value.
func (DeleteMenuReplyValidationError) Error ¶
func (e DeleteMenuReplyValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteMenuReplyValidationError) ErrorName ¶
func (e DeleteMenuReplyValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteMenuReplyValidationError) Field ¶
func (e DeleteMenuReplyValidationError) Field() string
Field function returns field value.
func (DeleteMenuReplyValidationError) Key ¶
func (e DeleteMenuReplyValidationError) Key() bool
Key function returns key value.
func (DeleteMenuReplyValidationError) Reason ¶
func (e DeleteMenuReplyValidationError) Reason() string
Reason function returns reason value.
type DeleteMenuRequest ¶
type DeleteMenuRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteMenuRequest) Descriptor
deprecated
func (*DeleteMenuRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteMenuRequest.ProtoReflect.Descriptor instead.
func (*DeleteMenuRequest) GetId ¶
func (x *DeleteMenuRequest) GetId() string
func (*DeleteMenuRequest) ProtoMessage ¶
func (*DeleteMenuRequest) ProtoMessage()
func (*DeleteMenuRequest) ProtoReflect ¶
func (x *DeleteMenuRequest) ProtoReflect() protoreflect.Message
func (*DeleteMenuRequest) Reset ¶
func (x *DeleteMenuRequest) Reset()
func (*DeleteMenuRequest) String ¶
func (x *DeleteMenuRequest) String() string
func (*DeleteMenuRequest) Validate ¶
func (m *DeleteMenuRequest) Validate() error
Validate checks the field values on DeleteMenuRequest 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 (*DeleteMenuRequest) ValidateAll ¶
func (m *DeleteMenuRequest) ValidateAll() error
ValidateAll checks the field values on DeleteMenuRequest 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 DeleteMenuRequestMultiError, or nil if none found.
type DeleteMenuRequestMultiError ¶
type DeleteMenuRequestMultiError []error
DeleteMenuRequestMultiError is an error wrapping multiple validation errors returned by DeleteMenuRequest.ValidateAll() if the designated constraints aren't met.
func (DeleteMenuRequestMultiError) AllErrors ¶
func (m DeleteMenuRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteMenuRequestMultiError) Error ¶
func (m DeleteMenuRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DeleteMenuRequestValidationError ¶
type DeleteMenuRequestValidationError struct {
// contains filtered or unexported fields
}
DeleteMenuRequestValidationError is the validation error returned by DeleteMenuRequest.Validate if the designated constraints aren't met.
func (DeleteMenuRequestValidationError) Cause ¶
func (e DeleteMenuRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteMenuRequestValidationError) Error ¶
func (e DeleteMenuRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteMenuRequestValidationError) ErrorName ¶
func (e DeleteMenuRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteMenuRequestValidationError) Field ¶
func (e DeleteMenuRequestValidationError) Field() string
Field function returns field value.
func (DeleteMenuRequestValidationError) Key ¶
func (e DeleteMenuRequestValidationError) Key() bool
Key function returns key value.
func (DeleteMenuRequestValidationError) Reason ¶
func (e DeleteMenuRequestValidationError) Reason() string
Reason function returns reason value.
type ErrorReason ¶
type ErrorReason int32
const ( ErrorReason_MENU_NAME_DUPLICATE ErrorReason = 0 ErrorReason_MENU_PRESERVED ErrorReason = 1 )
func (ErrorReason) Descriptor ¶
func (ErrorReason) Descriptor() protoreflect.EnumDescriptor
func (ErrorReason) Enum ¶
func (x ErrorReason) Enum() *ErrorReason
func (ErrorReason) EnumDescriptor
deprecated
func (ErrorReason) EnumDescriptor() ([]byte, []int)
Deprecated: Use ErrorReason.Descriptor instead.
func (ErrorReason) Number ¶
func (x ErrorReason) Number() protoreflect.EnumNumber
func (ErrorReason) String ¶
func (x ErrorReason) String() string
func (ErrorReason) Type ¶
func (ErrorReason) Type() protoreflect.EnumType
type GetAvailableMenusReply ¶
type GetAvailableMenusReply struct { Items []*Menu `protobuf:"bytes,3,rep,name=items,proto3" json:"items,omitempty"` // contains filtered or unexported fields }
func (*GetAvailableMenusReply) Descriptor
deprecated
func (*GetAvailableMenusReply) Descriptor() ([]byte, []int)
Deprecated: Use GetAvailableMenusReply.ProtoReflect.Descriptor instead.
func (*GetAvailableMenusReply) GetItems ¶
func (x *GetAvailableMenusReply) GetItems() []*Menu
func (*GetAvailableMenusReply) ProtoMessage ¶
func (*GetAvailableMenusReply) ProtoMessage()
func (*GetAvailableMenusReply) ProtoReflect ¶
func (x *GetAvailableMenusReply) ProtoReflect() protoreflect.Message
func (*GetAvailableMenusReply) Reset ¶
func (x *GetAvailableMenusReply) Reset()
func (*GetAvailableMenusReply) String ¶
func (x *GetAvailableMenusReply) String() string
func (*GetAvailableMenusReply) Validate ¶
func (m *GetAvailableMenusReply) Validate() error
Validate checks the field values on GetAvailableMenusReply 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 (*GetAvailableMenusReply) ValidateAll ¶
func (m *GetAvailableMenusReply) ValidateAll() error
ValidateAll checks the field values on GetAvailableMenusReply 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 GetAvailableMenusReplyMultiError, or nil if none found.
type GetAvailableMenusReplyMultiError ¶
type GetAvailableMenusReplyMultiError []error
GetAvailableMenusReplyMultiError is an error wrapping multiple validation errors returned by GetAvailableMenusReply.ValidateAll() if the designated constraints aren't met.
func (GetAvailableMenusReplyMultiError) AllErrors ¶
func (m GetAvailableMenusReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetAvailableMenusReplyMultiError) Error ¶
func (m GetAvailableMenusReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetAvailableMenusReplyValidationError ¶
type GetAvailableMenusReplyValidationError struct {
// contains filtered or unexported fields
}
GetAvailableMenusReplyValidationError is the validation error returned by GetAvailableMenusReply.Validate if the designated constraints aren't met.
func (GetAvailableMenusReplyValidationError) Cause ¶
func (e GetAvailableMenusReplyValidationError) Cause() error
Cause function returns cause value.
func (GetAvailableMenusReplyValidationError) Error ¶
func (e GetAvailableMenusReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetAvailableMenusReplyValidationError) ErrorName ¶
func (e GetAvailableMenusReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetAvailableMenusReplyValidationError) Field ¶
func (e GetAvailableMenusReplyValidationError) Field() string
Field function returns field value.
func (GetAvailableMenusReplyValidationError) Key ¶
func (e GetAvailableMenusReplyValidationError) Key() bool
Key function returns key value.
func (GetAvailableMenusReplyValidationError) Reason ¶
func (e GetAvailableMenusReplyValidationError) Reason() string
Reason function returns reason value.
type GetAvailableMenusRequest ¶
type GetAvailableMenusRequest struct {
// contains filtered or unexported fields
}
func (*GetAvailableMenusRequest) Descriptor
deprecated
func (*GetAvailableMenusRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAvailableMenusRequest.ProtoReflect.Descriptor instead.
func (*GetAvailableMenusRequest) ProtoMessage ¶
func (*GetAvailableMenusRequest) ProtoMessage()
func (*GetAvailableMenusRequest) ProtoReflect ¶
func (x *GetAvailableMenusRequest) ProtoReflect() protoreflect.Message
func (*GetAvailableMenusRequest) Reset ¶
func (x *GetAvailableMenusRequest) Reset()
func (*GetAvailableMenusRequest) String ¶
func (x *GetAvailableMenusRequest) String() string
func (*GetAvailableMenusRequest) Validate ¶
func (m *GetAvailableMenusRequest) Validate() error
Validate checks the field values on GetAvailableMenusRequest 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 (*GetAvailableMenusRequest) ValidateAll ¶
func (m *GetAvailableMenusRequest) ValidateAll() error
ValidateAll checks the field values on GetAvailableMenusRequest 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 GetAvailableMenusRequestMultiError, or nil if none found.
type GetAvailableMenusRequestMultiError ¶
type GetAvailableMenusRequestMultiError []error
GetAvailableMenusRequestMultiError is an error wrapping multiple validation errors returned by GetAvailableMenusRequest.ValidateAll() if the designated constraints aren't met.
func (GetAvailableMenusRequestMultiError) AllErrors ¶
func (m GetAvailableMenusRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetAvailableMenusRequestMultiError) Error ¶
func (m GetAvailableMenusRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetAvailableMenusRequestValidationError ¶
type GetAvailableMenusRequestValidationError struct {
// contains filtered or unexported fields
}
GetAvailableMenusRequestValidationError is the validation error returned by GetAvailableMenusRequest.Validate if the designated constraints aren't met.
func (GetAvailableMenusRequestValidationError) Cause ¶
func (e GetAvailableMenusRequestValidationError) Cause() error
Cause function returns cause value.
func (GetAvailableMenusRequestValidationError) Error ¶
func (e GetAvailableMenusRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetAvailableMenusRequestValidationError) ErrorName ¶
func (e GetAvailableMenusRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetAvailableMenusRequestValidationError) Field ¶
func (e GetAvailableMenusRequestValidationError) Field() string
Field function returns field value.
func (GetAvailableMenusRequestValidationError) Key ¶
func (e GetAvailableMenusRequestValidationError) Key() bool
Key function returns key value.
func (GetAvailableMenusRequestValidationError) Reason ¶
func (e GetAvailableMenusRequestValidationError) Reason() string
Reason function returns reason value.
type GetMenuRequest ¶
type GetMenuRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetMenuRequest) Descriptor
deprecated
func (*GetMenuRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetMenuRequest.ProtoReflect.Descriptor instead.
func (*GetMenuRequest) GetId ¶
func (x *GetMenuRequest) GetId() string
func (*GetMenuRequest) ProtoMessage ¶
func (*GetMenuRequest) ProtoMessage()
func (*GetMenuRequest) ProtoReflect ¶
func (x *GetMenuRequest) ProtoReflect() protoreflect.Message
func (*GetMenuRequest) Reset ¶
func (x *GetMenuRequest) Reset()
func (*GetMenuRequest) String ¶
func (x *GetMenuRequest) String() string
func (*GetMenuRequest) Validate ¶
func (m *GetMenuRequest) Validate() error
Validate checks the field values on GetMenuRequest 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 (*GetMenuRequest) ValidateAll ¶
func (m *GetMenuRequest) ValidateAll() error
ValidateAll checks the field values on GetMenuRequest 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 GetMenuRequestMultiError, or nil if none found.
type GetMenuRequestMultiError ¶
type GetMenuRequestMultiError []error
GetMenuRequestMultiError is an error wrapping multiple validation errors returned by GetMenuRequest.ValidateAll() if the designated constraints aren't met.
func (GetMenuRequestMultiError) AllErrors ¶
func (m GetMenuRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetMenuRequestMultiError) Error ¶
func (m GetMenuRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetMenuRequestValidationError ¶
type GetMenuRequestValidationError struct {
// contains filtered or unexported fields
}
GetMenuRequestValidationError is the validation error returned by GetMenuRequest.Validate if the designated constraints aren't met.
func (GetMenuRequestValidationError) Cause ¶
func (e GetMenuRequestValidationError) Cause() error
Cause function returns cause value.
func (GetMenuRequestValidationError) Error ¶
func (e GetMenuRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetMenuRequestValidationError) ErrorName ¶
func (e GetMenuRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetMenuRequestValidationError) Field ¶
func (e GetMenuRequestValidationError) Field() string
Field function returns field value.
func (GetMenuRequestValidationError) Key ¶
func (e GetMenuRequestValidationError) Key() bool
Key function returns key value.
func (GetMenuRequestValidationError) Reason ¶
func (e GetMenuRequestValidationError) Reason() string
Reason function returns reason value.
type ListMenuReply ¶
type ListMenuReply struct { TotalSize int32 `protobuf:"varint,1,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"` FilterSize int32 `protobuf:"varint,2,opt,name=filter_size,json=filterSize,proto3" json:"filter_size,omitempty"` Items []*Menu `protobuf:"bytes,3,rep,name=items,proto3" json:"items,omitempty"` // contains filtered or unexported fields }
func (*ListMenuReply) Descriptor
deprecated
func (*ListMenuReply) Descriptor() ([]byte, []int)
Deprecated: Use ListMenuReply.ProtoReflect.Descriptor instead.
func (*ListMenuReply) GetFilterSize ¶
func (x *ListMenuReply) GetFilterSize() int32
func (*ListMenuReply) GetItems ¶
func (x *ListMenuReply) GetItems() []*Menu
func (*ListMenuReply) GetTotalSize ¶
func (x *ListMenuReply) GetTotalSize() int32
func (*ListMenuReply) ProtoMessage ¶
func (*ListMenuReply) ProtoMessage()
func (*ListMenuReply) ProtoReflect ¶
func (x *ListMenuReply) ProtoReflect() protoreflect.Message
func (*ListMenuReply) Reset ¶
func (x *ListMenuReply) Reset()
func (*ListMenuReply) String ¶
func (x *ListMenuReply) String() string
func (*ListMenuReply) Validate ¶
func (m *ListMenuReply) Validate() error
Validate checks the field values on ListMenuReply 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 (*ListMenuReply) ValidateAll ¶
func (m *ListMenuReply) ValidateAll() error
ValidateAll checks the field values on ListMenuReply 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 ListMenuReplyMultiError, or nil if none found.
type ListMenuReplyMultiError ¶
type ListMenuReplyMultiError []error
ListMenuReplyMultiError is an error wrapping multiple validation errors returned by ListMenuReply.ValidateAll() if the designated constraints aren't met.
func (ListMenuReplyMultiError) AllErrors ¶
func (m ListMenuReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListMenuReplyMultiError) Error ¶
func (m ListMenuReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListMenuReplyValidationError ¶
type ListMenuReplyValidationError struct {
// contains filtered or unexported fields
}
ListMenuReplyValidationError is the validation error returned by ListMenuReply.Validate if the designated constraints aren't met.
func (ListMenuReplyValidationError) Cause ¶
func (e ListMenuReplyValidationError) Cause() error
Cause function returns cause value.
func (ListMenuReplyValidationError) Error ¶
func (e ListMenuReplyValidationError) Error() string
Error satisfies the builtin error interface
func (ListMenuReplyValidationError) ErrorName ¶
func (e ListMenuReplyValidationError) ErrorName() string
ErrorName returns error name.
func (ListMenuReplyValidationError) Field ¶
func (e ListMenuReplyValidationError) Field() string
Field function returns field value.
func (ListMenuReplyValidationError) Key ¶
func (e ListMenuReplyValidationError) Key() bool
Key function returns key value.
func (ListMenuReplyValidationError) Reason ¶
func (e ListMenuReplyValidationError) Reason() string
Reason function returns reason value.
type ListMenuRequest ¶
type ListMenuRequest struct { PageOffset int32 `protobuf:"varint,1,opt,name=page_offset,json=pageOffset,proto3" json:"page_offset,omitempty"` PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` Search string `protobuf:"bytes,3,opt,name=search,proto3" json:"search,omitempty"` Sort []string `protobuf:"bytes,4,rep,name=sort,proto3" json:"sort,omitempty"` Fields *fieldmaskpb.FieldMask `protobuf:"bytes,5,opt,name=fields,proto3" json:"fields,omitempty"` Filter *MenuFilter `protobuf:"bytes,6,opt,name=filter,proto3" json:"filter,omitempty"` // contains filtered or unexported fields }
func (*ListMenuRequest) Descriptor
deprecated
func (*ListMenuRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListMenuRequest.ProtoReflect.Descriptor instead.
func (*ListMenuRequest) GetFields ¶
func (x *ListMenuRequest) GetFields() *fieldmaskpb.FieldMask
func (*ListMenuRequest) GetFilter ¶
func (x *ListMenuRequest) GetFilter() *MenuFilter
func (*ListMenuRequest) GetPageOffset ¶
func (x *ListMenuRequest) GetPageOffset() int32
func (*ListMenuRequest) GetPageSize ¶
func (x *ListMenuRequest) GetPageSize() int32
func (*ListMenuRequest) GetSearch ¶
func (x *ListMenuRequest) GetSearch() string
func (*ListMenuRequest) GetSort ¶
func (x *ListMenuRequest) GetSort() []string
func (*ListMenuRequest) ProtoMessage ¶
func (*ListMenuRequest) ProtoMessage()
func (*ListMenuRequest) ProtoReflect ¶
func (x *ListMenuRequest) ProtoReflect() protoreflect.Message
func (*ListMenuRequest) Reset ¶
func (x *ListMenuRequest) Reset()
func (*ListMenuRequest) String ¶
func (x *ListMenuRequest) String() string
func (*ListMenuRequest) Validate ¶
func (m *ListMenuRequest) Validate() error
Validate checks the field values on ListMenuRequest 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 (*ListMenuRequest) ValidateAll ¶
func (m *ListMenuRequest) ValidateAll() error
ValidateAll checks the field values on ListMenuRequest 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 ListMenuRequestMultiError, or nil if none found.
type ListMenuRequestMultiError ¶
type ListMenuRequestMultiError []error
ListMenuRequestMultiError is an error wrapping multiple validation errors returned by ListMenuRequest.ValidateAll() if the designated constraints aren't met.
func (ListMenuRequestMultiError) AllErrors ¶
func (m ListMenuRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListMenuRequestMultiError) Error ¶
func (m ListMenuRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListMenuRequestValidationError ¶
type ListMenuRequestValidationError struct {
// contains filtered or unexported fields
}
ListMenuRequestValidationError is the validation error returned by ListMenuRequest.Validate if the designated constraints aren't met.
func (ListMenuRequestValidationError) Cause ¶
func (e ListMenuRequestValidationError) Cause() error
Cause function returns cause value.
func (ListMenuRequestValidationError) Error ¶
func (e ListMenuRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListMenuRequestValidationError) ErrorName ¶
func (e ListMenuRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListMenuRequestValidationError) Field ¶
func (e ListMenuRequestValidationError) Field() string
Field function returns field value.
func (ListMenuRequestValidationError) Key ¶
func (e ListMenuRequestValidationError) Key() bool
Key function returns key value.
func (ListMenuRequestValidationError) Reason ¶
func (e ListMenuRequestValidationError) Reason() string
Reason function returns reason value.
type Menu ¶
type Menu struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3,oneof" json:"created_at,omitempty"` Desc string `protobuf:"bytes,5,opt,name=desc,proto3" json:"desc,omitempty"` Component string `protobuf:"bytes,6,opt,name=component,proto3" json:"component,omitempty"` Requirement []*v1.PermissionRequirement `protobuf:"bytes,7,rep,name=requirement,proto3" json:"requirement,omitempty"` //parent menu Parent string `protobuf:"bytes,8,opt,name=parent,proto3" json:"parent,omitempty"` Props *structpb.Struct `protobuf:"bytes,9,opt,name=props,proto3" json:"props,omitempty"` FullPath string `protobuf:"bytes,10,opt,name=full_path,json=fullPath,proto3" json:"full_path,omitempty"` Priority int32 `protobuf:"varint,11,opt,name=priority,proto3" json:"priority,omitempty"` IgnoreAuth bool `protobuf:"varint,12,opt,name=ignore_auth,json=ignoreAuth,proto3" json:"ignore_auth,omitempty"` Icon string `protobuf:"bytes,13,opt,name=icon,proto3" json:"icon,omitempty"` Iframe string `protobuf:"bytes,14,opt,name=iframe,proto3" json:"iframe,omitempty"` MicroApp string `protobuf:"bytes,15,opt,name=micro_app,json=microApp,proto3" json:"micro_app,omitempty"` Meta *structpb.Struct `protobuf:"bytes,16,opt,name=meta,proto3" json:"meta,omitempty"` Title string `protobuf:"bytes,17,opt,name=title,proto3" json:"title,omitempty"` Path string `protobuf:"bytes,18,opt,name=path,proto3" json:"path,omitempty"` Redirect string `protobuf:"bytes,19,opt,name=redirect,proto3" json:"redirect,omitempty"` MicroAppName string `protobuf:"bytes,20,opt,name=micro_app_name,json=microAppName,proto3" json:"micro_app_name,omitempty"` MicroAppBaseRoute string `protobuf:"bytes,21,opt,name=micro_app_base_route,json=microAppBaseRoute,proto3" json:"micro_app_base_route,omitempty"` MicroAppDev string `protobuf:"bytes,22,opt,name=micro_app_dev,json=microAppDev,proto3" json:"micro_app_dev,omitempty"` // contains filtered or unexported fields }
func (*Menu) Descriptor
deprecated
func (*Menu) GetComponent ¶
func (*Menu) GetCreatedAt ¶
func (x *Menu) GetCreatedAt() *timestamppb.Timestamp
func (*Menu) GetFullPath ¶
func (*Menu) GetIgnoreAuth ¶
func (*Menu) GetMicroApp ¶
func (*Menu) GetMicroAppBaseRoute ¶
func (*Menu) GetMicroAppDev ¶
func (*Menu) GetMicroAppName ¶
func (*Menu) GetPriority ¶
func (*Menu) GetRedirect ¶
func (*Menu) GetRequirement ¶
func (x *Menu) GetRequirement() []*v1.PermissionRequirement
func (*Menu) ProtoMessage ¶
func (*Menu) ProtoMessage()
func (*Menu) ProtoReflect ¶
func (x *Menu) ProtoReflect() protoreflect.Message
func (*Menu) Validate ¶
Validate checks the field values on Menu 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 (*Menu) ValidateAll ¶
ValidateAll checks the field values on Menu 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 MenuMultiError, or nil if none found.
type MenuFilter ¶
type MenuFilter struct { Id *query.StringFilterOperation `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name *query.StringFilterOperation `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Parent *query.StringFilterOperation `protobuf:"bytes,3,opt,name=parent,proto3" json:"parent,omitempty"` // contains filtered or unexported fields }
func (*MenuFilter) Descriptor
deprecated
func (*MenuFilter) Descriptor() ([]byte, []int)
Deprecated: Use MenuFilter.ProtoReflect.Descriptor instead.
func (*MenuFilter) GetId ¶
func (x *MenuFilter) GetId() *query.StringFilterOperation
func (*MenuFilter) GetName ¶
func (x *MenuFilter) GetName() *query.StringFilterOperation
func (*MenuFilter) GetParent ¶
func (x *MenuFilter) GetParent() *query.StringFilterOperation
func (*MenuFilter) ProtoMessage ¶
func (*MenuFilter) ProtoMessage()
func (*MenuFilter) ProtoReflect ¶
func (x *MenuFilter) ProtoReflect() protoreflect.Message
func (*MenuFilter) Reset ¶
func (x *MenuFilter) Reset()
func (*MenuFilter) String ¶
func (x *MenuFilter) String() string
func (*MenuFilter) Validate ¶
func (m *MenuFilter) Validate() error
Validate checks the field values on MenuFilter 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 (*MenuFilter) ValidateAll ¶
func (m *MenuFilter) ValidateAll() error
ValidateAll checks the field values on MenuFilter 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 MenuFilterMultiError, or nil if none found.
type MenuFilterMultiError ¶
type MenuFilterMultiError []error
MenuFilterMultiError is an error wrapping multiple validation errors returned by MenuFilter.ValidateAll() if the designated constraints aren't met.
func (MenuFilterMultiError) AllErrors ¶
func (m MenuFilterMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MenuFilterMultiError) Error ¶
func (m MenuFilterMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MenuFilterValidationError ¶
type MenuFilterValidationError struct {
// contains filtered or unexported fields
}
MenuFilterValidationError is the validation error returned by MenuFilter.Validate if the designated constraints aren't met.
func (MenuFilterValidationError) Cause ¶
func (e MenuFilterValidationError) Cause() error
Cause function returns cause value.
func (MenuFilterValidationError) Error ¶
func (e MenuFilterValidationError) Error() string
Error satisfies the builtin error interface
func (MenuFilterValidationError) ErrorName ¶
func (e MenuFilterValidationError) ErrorName() string
ErrorName returns error name.
func (MenuFilterValidationError) Field ¶
func (e MenuFilterValidationError) Field() string
Field function returns field value.
func (MenuFilterValidationError) Key ¶
func (e MenuFilterValidationError) Key() bool
Key function returns key value.
func (MenuFilterValidationError) Reason ¶
func (e MenuFilterValidationError) Reason() string
Reason function returns reason value.
type MenuMultiError ¶
type MenuMultiError []error
MenuMultiError is an error wrapping multiple validation errors returned by Menu.ValidateAll() if the designated constraints aren't met.
func (MenuMultiError) AllErrors ¶
func (m MenuMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MenuMultiError) Error ¶
func (m MenuMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MenuServiceClient ¶
type MenuServiceClient interface { ListMenu(ctx context.Context, in *ListMenuRequest, opts ...grpc.CallOption) (*ListMenuReply, error) GetMenu(ctx context.Context, in *GetMenuRequest, opts ...grpc.CallOption) (*Menu, error) CreateMenu(ctx context.Context, in *CreateMenuRequest, opts ...grpc.CallOption) (*Menu, error) UpdateMenu(ctx context.Context, in *UpdateMenuRequest, opts ...grpc.CallOption) (*Menu, error) DeleteMenu(ctx context.Context, in *DeleteMenuRequest, opts ...grpc.CallOption) (*DeleteMenuReply, error) GetAvailableMenus(ctx context.Context, in *GetAvailableMenusRequest, opts ...grpc.CallOption) (*GetAvailableMenusReply, error) }
MenuServiceClient is the client API for MenuService 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 NewMenuServiceClient ¶
func NewMenuServiceClient(cc grpc.ClientConnInterface) MenuServiceClient
type MenuServiceHTTPClient ¶
type MenuServiceHTTPClient interface { CreateMenu(ctx context.Context, req *CreateMenuRequest, opts ...http.CallOption) (rsp *Menu, err error) DeleteMenu(ctx context.Context, req *DeleteMenuRequest, opts ...http.CallOption) (rsp *DeleteMenuReply, err error) GetAvailableMenus(ctx context.Context, req *GetAvailableMenusRequest, opts ...http.CallOption) (rsp *GetAvailableMenusReply, err error) GetMenu(ctx context.Context, req *GetMenuRequest, opts ...http.CallOption) (rsp *Menu, err error) ListMenu(ctx context.Context, req *ListMenuRequest, opts ...http.CallOption) (rsp *ListMenuReply, err error) UpdateMenu(ctx context.Context, req *UpdateMenuRequest, opts ...http.CallOption) (rsp *Menu, err error) }
func NewMenuServiceHTTPClient ¶
func NewMenuServiceHTTPClient(client *http.Client) MenuServiceHTTPClient
type MenuServiceHTTPClientImpl ¶
type MenuServiceHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*MenuServiceHTTPClientImpl) CreateMenu ¶
func (c *MenuServiceHTTPClientImpl) CreateMenu(ctx context.Context, in *CreateMenuRequest, opts ...http.CallOption) (*Menu, error)
func (*MenuServiceHTTPClientImpl) DeleteMenu ¶
func (c *MenuServiceHTTPClientImpl) DeleteMenu(ctx context.Context, in *DeleteMenuRequest, opts ...http.CallOption) (*DeleteMenuReply, error)
func (*MenuServiceHTTPClientImpl) GetAvailableMenus ¶
func (c *MenuServiceHTTPClientImpl) GetAvailableMenus(ctx context.Context, in *GetAvailableMenusRequest, opts ...http.CallOption) (*GetAvailableMenusReply, error)
func (*MenuServiceHTTPClientImpl) GetMenu ¶
func (c *MenuServiceHTTPClientImpl) GetMenu(ctx context.Context, in *GetMenuRequest, opts ...http.CallOption) (*Menu, error)
func (*MenuServiceHTTPClientImpl) ListMenu ¶
func (c *MenuServiceHTTPClientImpl) ListMenu(ctx context.Context, in *ListMenuRequest, opts ...http.CallOption) (*ListMenuReply, error)
func (*MenuServiceHTTPClientImpl) UpdateMenu ¶
func (c *MenuServiceHTTPClientImpl) UpdateMenu(ctx context.Context, in *UpdateMenuRequest, opts ...http.CallOption) (*Menu, error)
type MenuServiceHTTPServer ¶
type MenuServiceHTTPServer interface { CreateMenu(context.Context, *CreateMenuRequest) (*Menu, error) DeleteMenu(context.Context, *DeleteMenuRequest) (*DeleteMenuReply, error) GetAvailableMenus(context.Context, *GetAvailableMenusRequest) (*GetAvailableMenusReply, error) GetMenu(context.Context, *GetMenuRequest) (*Menu, error) ListMenu(context.Context, *ListMenuRequest) (*ListMenuReply, error) UpdateMenu(context.Context, *UpdateMenuRequest) (*Menu, error) }
type MenuServiceServer ¶
type MenuServiceServer interface { ListMenu(context.Context, *ListMenuRequest) (*ListMenuReply, error) GetMenu(context.Context, *GetMenuRequest) (*Menu, error) CreateMenu(context.Context, *CreateMenuRequest) (*Menu, error) UpdateMenu(context.Context, *UpdateMenuRequest) (*Menu, error) DeleteMenu(context.Context, *DeleteMenuRequest) (*DeleteMenuReply, error) GetAvailableMenus(context.Context, *GetAvailableMenusRequest) (*GetAvailableMenusReply, error) }
MenuServiceServer is the server API for MenuService service. All implementations should embed UnimplementedMenuServiceServer for forward compatibility
func NewMenuServiceClientProxy ¶
func NewMenuServiceClientProxy(cc MenuServiceClient) MenuServiceServer
type MenuValidationError ¶
type MenuValidationError struct {
// contains filtered or unexported fields
}
MenuValidationError is the validation error returned by Menu.Validate if the designated constraints aren't met.
func (MenuValidationError) Cause ¶
func (e MenuValidationError) Cause() error
Cause function returns cause value.
func (MenuValidationError) Error ¶
func (e MenuValidationError) Error() string
Error satisfies the builtin error interface
func (MenuValidationError) ErrorName ¶
func (e MenuValidationError) ErrorName() string
ErrorName returns error name.
func (MenuValidationError) Field ¶
func (e MenuValidationError) Field() string
Field function returns field value.
func (MenuValidationError) Key ¶
func (e MenuValidationError) Key() bool
Key function returns key value.
func (MenuValidationError) Reason ¶
func (e MenuValidationError) Reason() string
Reason function returns reason value.
type UnimplementedMenuServiceServer ¶
type UnimplementedMenuServiceServer struct { }
UnimplementedMenuServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedMenuServiceServer) CreateMenu ¶
func (UnimplementedMenuServiceServer) CreateMenu(context.Context, *CreateMenuRequest) (*Menu, error)
func (UnimplementedMenuServiceServer) DeleteMenu ¶
func (UnimplementedMenuServiceServer) DeleteMenu(context.Context, *DeleteMenuRequest) (*DeleteMenuReply, error)
func (UnimplementedMenuServiceServer) GetAvailableMenus ¶
func (UnimplementedMenuServiceServer) GetAvailableMenus(context.Context, *GetAvailableMenusRequest) (*GetAvailableMenusReply, error)
func (UnimplementedMenuServiceServer) GetMenu ¶
func (UnimplementedMenuServiceServer) GetMenu(context.Context, *GetMenuRequest) (*Menu, error)
func (UnimplementedMenuServiceServer) ListMenu ¶
func (UnimplementedMenuServiceServer) ListMenu(context.Context, *ListMenuRequest) (*ListMenuReply, error)
func (UnimplementedMenuServiceServer) UpdateMenu ¶
func (UnimplementedMenuServiceServer) UpdateMenu(context.Context, *UpdateMenuRequest) (*Menu, error)
type UnsafeMenuServiceServer ¶
type UnsafeMenuServiceServer interface {
// contains filtered or unexported methods
}
UnsafeMenuServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MenuServiceServer will result in compilation errors.
type UpdateMenu ¶
type UpdateMenu struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Desc string `protobuf:"bytes,5,opt,name=desc,proto3" json:"desc,omitempty"` Component string `protobuf:"bytes,6,opt,name=component,proto3" json:"component,omitempty"` Requirement []*v1.PermissionRequirement `protobuf:"bytes,7,rep,name=requirement,proto3" json:"requirement,omitempty"` //parent menu Parent string `protobuf:"bytes,8,opt,name=parent,proto3" json:"parent,omitempty"` Props *structpb.Struct `protobuf:"bytes,9,opt,name=props,proto3" json:"props,omitempty"` FullPath string `protobuf:"bytes,10,opt,name=full_path,json=fullPath,proto3" json:"full_path,omitempty"` Priority int32 `protobuf:"varint,11,opt,name=priority,proto3" json:"priority,omitempty"` IgnoreAuth bool `protobuf:"varint,12,opt,name=ignore_auth,json=ignoreAuth,proto3" json:"ignore_auth,omitempty"` Icon string `protobuf:"bytes,13,opt,name=icon,proto3" json:"icon,omitempty"` Iframe string `protobuf:"bytes,14,opt,name=iframe,proto3" json:"iframe,omitempty"` MicroApp string `protobuf:"bytes,15,opt,name=micro_app,json=microApp,proto3" json:"micro_app,omitempty"` Meta *structpb.Struct `protobuf:"bytes,16,opt,name=meta,proto3" json:"meta,omitempty"` Title string `protobuf:"bytes,17,opt,name=title,proto3" json:"title,omitempty"` Path string `protobuf:"bytes,18,opt,name=path,proto3" json:"path,omitempty"` Redirect string `protobuf:"bytes,19,opt,name=redirect,proto3" json:"redirect,omitempty"` MicroAppName string `protobuf:"bytes,20,opt,name=micro_app_name,json=microAppName,proto3" json:"micro_app_name,omitempty"` MicroAppBaseRoute string `protobuf:"bytes,21,opt,name=micro_app_base_route,json=microAppBaseRoute,proto3" json:"micro_app_base_route,omitempty"` MicroAppDev string `protobuf:"bytes,22,opt,name=micro_app_dev,json=microAppDev,proto3" json:"micro_app_dev,omitempty"` // contains filtered or unexported fields }
func (*UpdateMenu) Descriptor
deprecated
func (*UpdateMenu) Descriptor() ([]byte, []int)
Deprecated: Use UpdateMenu.ProtoReflect.Descriptor instead.
func (*UpdateMenu) GetComponent ¶
func (x *UpdateMenu) GetComponent() string
func (*UpdateMenu) GetDesc ¶
func (x *UpdateMenu) GetDesc() string
func (*UpdateMenu) GetFullPath ¶
func (x *UpdateMenu) GetFullPath() string
func (*UpdateMenu) GetIcon ¶
func (x *UpdateMenu) GetIcon() string
func (*UpdateMenu) GetId ¶
func (x *UpdateMenu) GetId() string
func (*UpdateMenu) GetIframe ¶
func (x *UpdateMenu) GetIframe() string
func (*UpdateMenu) GetIgnoreAuth ¶
func (x *UpdateMenu) GetIgnoreAuth() bool
func (*UpdateMenu) GetMeta ¶
func (x *UpdateMenu) GetMeta() *structpb.Struct
func (*UpdateMenu) GetMicroApp ¶
func (x *UpdateMenu) GetMicroApp() string
func (*UpdateMenu) GetMicroAppBaseRoute ¶
func (x *UpdateMenu) GetMicroAppBaseRoute() string
func (*UpdateMenu) GetMicroAppDev ¶
func (x *UpdateMenu) GetMicroAppDev() string
func (*UpdateMenu) GetMicroAppName ¶
func (x *UpdateMenu) GetMicroAppName() string
func (*UpdateMenu) GetName ¶
func (x *UpdateMenu) GetName() string
func (*UpdateMenu) GetParent ¶
func (x *UpdateMenu) GetParent() string
func (*UpdateMenu) GetPath ¶
func (x *UpdateMenu) GetPath() string
func (*UpdateMenu) GetPriority ¶
func (x *UpdateMenu) GetPriority() int32
func (*UpdateMenu) GetProps ¶
func (x *UpdateMenu) GetProps() *structpb.Struct
func (*UpdateMenu) GetRedirect ¶
func (x *UpdateMenu) GetRedirect() string
func (*UpdateMenu) GetRequirement ¶
func (x *UpdateMenu) GetRequirement() []*v1.PermissionRequirement
func (*UpdateMenu) GetTitle ¶
func (x *UpdateMenu) GetTitle() string
func (*UpdateMenu) ProtoMessage ¶
func (*UpdateMenu) ProtoMessage()
func (*UpdateMenu) ProtoReflect ¶
func (x *UpdateMenu) ProtoReflect() protoreflect.Message
func (*UpdateMenu) Reset ¶
func (x *UpdateMenu) Reset()
func (*UpdateMenu) String ¶
func (x *UpdateMenu) String() string
func (*UpdateMenu) Validate ¶
func (m *UpdateMenu) Validate() error
Validate checks the field values on UpdateMenu 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 (*UpdateMenu) ValidateAll ¶
func (m *UpdateMenu) ValidateAll() error
ValidateAll checks the field values on UpdateMenu 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 UpdateMenuMultiError, or nil if none found.
type UpdateMenuMultiError ¶
type UpdateMenuMultiError []error
UpdateMenuMultiError is an error wrapping multiple validation errors returned by UpdateMenu.ValidateAll() if the designated constraints aren't met.
func (UpdateMenuMultiError) AllErrors ¶
func (m UpdateMenuMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateMenuMultiError) Error ¶
func (m UpdateMenuMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateMenuRequest ¶
type UpdateMenuRequest struct { Menu *UpdateMenu `protobuf:"bytes,1,opt,name=menu,proto3" json:"menu,omitempty"` UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // contains filtered or unexported fields }
func (*UpdateMenuRequest) Descriptor
deprecated
func (*UpdateMenuRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateMenuRequest.ProtoReflect.Descriptor instead.
func (*UpdateMenuRequest) GetMenu ¶
func (x *UpdateMenuRequest) GetMenu() *UpdateMenu
func (*UpdateMenuRequest) GetUpdateMask ¶
func (x *UpdateMenuRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateMenuRequest) ProtoMessage ¶
func (*UpdateMenuRequest) ProtoMessage()
func (*UpdateMenuRequest) ProtoReflect ¶
func (x *UpdateMenuRequest) ProtoReflect() protoreflect.Message
func (*UpdateMenuRequest) Reset ¶
func (x *UpdateMenuRequest) Reset()
func (*UpdateMenuRequest) String ¶
func (x *UpdateMenuRequest) String() string
func (*UpdateMenuRequest) Validate ¶
func (m *UpdateMenuRequest) Validate() error
Validate checks the field values on UpdateMenuRequest 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 (*UpdateMenuRequest) ValidateAll ¶
func (m *UpdateMenuRequest) ValidateAll() error
ValidateAll checks the field values on UpdateMenuRequest 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 UpdateMenuRequestMultiError, or nil if none found.
type UpdateMenuRequestMultiError ¶
type UpdateMenuRequestMultiError []error
UpdateMenuRequestMultiError is an error wrapping multiple validation errors returned by UpdateMenuRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateMenuRequestMultiError) AllErrors ¶
func (m UpdateMenuRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateMenuRequestMultiError) Error ¶
func (m UpdateMenuRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateMenuRequestValidationError ¶
type UpdateMenuRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateMenuRequestValidationError is the validation error returned by UpdateMenuRequest.Validate if the designated constraints aren't met.
func (UpdateMenuRequestValidationError) Cause ¶
func (e UpdateMenuRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateMenuRequestValidationError) Error ¶
func (e UpdateMenuRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateMenuRequestValidationError) ErrorName ¶
func (e UpdateMenuRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateMenuRequestValidationError) Field ¶
func (e UpdateMenuRequestValidationError) Field() string
Field function returns field value.
func (UpdateMenuRequestValidationError) Key ¶
func (e UpdateMenuRequestValidationError) Key() bool
Key function returns key value.
func (UpdateMenuRequestValidationError) Reason ¶
func (e UpdateMenuRequestValidationError) Reason() string
Reason function returns reason value.
type UpdateMenuValidationError ¶
type UpdateMenuValidationError struct {
// contains filtered or unexported fields
}
UpdateMenuValidationError is the validation error returned by UpdateMenu.Validate if the designated constraints aren't met.
func (UpdateMenuValidationError) Cause ¶
func (e UpdateMenuValidationError) Cause() error
Cause function returns cause value.
func (UpdateMenuValidationError) Error ¶
func (e UpdateMenuValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateMenuValidationError) ErrorName ¶
func (e UpdateMenuValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateMenuValidationError) Field ¶
func (e UpdateMenuValidationError) Field() string
Field function returns field value.
func (UpdateMenuValidationError) Key ¶
func (e UpdateMenuValidationError) Key() bool
Key function returns key value.
func (UpdateMenuValidationError) Reason ¶
func (e UpdateMenuValidationError) Reason() string
Reason function returns reason value.