v1

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2022 License: Apache-2.0, MIT Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const OperationMenuServiceCreateMenu = "/sys.api.menu.v1.MenuService/CreateMenu"
View Source
const OperationMenuServiceDeleteMenu = "/sys.api.menu.v1.MenuService/DeleteMenu"
View Source
const OperationMenuServiceGetAvailableMenus = "/sys.api.menu.v1.MenuService/GetAvailableMenus"
View Source
const OperationMenuServiceGetMenu = "/sys.api.menu.v1.MenuService/GetMenu"
View Source
const OperationMenuServiceListMenu = "/sys.api.menu.v1.MenuService/ListMenu"
View Source
const OperationMenuServiceUpdateMenu = "/sys.api.menu.v1.MenuService/UpdateMenu"

Variables

View Source
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.

View Source
var File_sys_api_menu_v1_error_reason_proto protoreflect.FileDescriptor
View Source
var File_sys_api_menu_v1_menu_proto protoreflect.FileDescriptor
View Source
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 ErrorMenuNameDuplicate(format string, args ...interface{}) *errors.Error

func ErrorMenuNameDuplicateLocalized

func ErrorMenuNameDuplicateLocalized(localizer *i18n.Localizer, data map[string]interface{}, pluralCount interface{}) *errors.Error

func ErrorMenuPreserved

func ErrorMenuPreserved(format string, args ...interface{}) *errors.Error

func ErrorMenuPreservedLocalized

func ErrorMenuPreservedLocalized(localizer *i18n.Localizer, data map[string]interface{}, pluralCount interface{}) *errors.Error

func IsMenuNameDuplicate

func IsMenuNameDuplicate(err error) bool

func IsMenuPreserved

func IsMenuPreserved(err error) bool

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

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

Cause function returns cause value.

func (CreateMenuRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateMenuRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateMenuRequestValidationError) Field

Field function returns field value.

func (CreateMenuRequestValidationError) Key

Key function returns key value.

func (CreateMenuRequestValidationError) Reason

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

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

Cause function returns cause value.

func (DeleteMenuReplyValidationError) Error

Error satisfies the builtin error interface

func (DeleteMenuReplyValidationError) ErrorName

func (e DeleteMenuReplyValidationError) ErrorName() string

ErrorName returns error name.

func (DeleteMenuReplyValidationError) Field

Field function returns field value.

func (DeleteMenuReplyValidationError) Key

Key function returns key value.

func (DeleteMenuReplyValidationError) Reason

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

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

Cause function returns cause value.

func (DeleteMenuRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteMenuRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteMenuRequestValidationError) Field

Field function returns field value.

func (DeleteMenuRequestValidationError) Key

Key function returns key value.

func (DeleteMenuRequestValidationError) Reason

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

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

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

Cause function returns cause value.

func (GetAvailableMenusReplyValidationError) Error

Error satisfies the builtin error interface

func (GetAvailableMenusReplyValidationError) ErrorName

ErrorName returns error name.

func (GetAvailableMenusReplyValidationError) Field

Field function returns field value.

func (GetAvailableMenusReplyValidationError) Key

Key function returns key value.

func (GetAvailableMenusReplyValidationError) Reason

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

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

Cause function returns cause value.

func (GetAvailableMenusRequestValidationError) Error

Error satisfies the builtin error interface

func (GetAvailableMenusRequestValidationError) ErrorName

ErrorName returns error name.

func (GetAvailableMenusRequestValidationError) Field

Field function returns field value.

func (GetAvailableMenusRequestValidationError) Key

Key function returns key value.

func (GetAvailableMenusRequestValidationError) Reason

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

Cause function returns cause value.

func (GetMenuRequestValidationError) Error

Error satisfies the builtin error interface

func (GetMenuRequestValidationError) ErrorName

func (e GetMenuRequestValidationError) ErrorName() string

ErrorName returns error name.

func (GetMenuRequestValidationError) Field

Field function returns field value.

func (GetMenuRequestValidationError) Key

Key function returns key value.

func (GetMenuRequestValidationError) Reason

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

Cause function returns cause value.

func (ListMenuReplyValidationError) Error

Error satisfies the builtin error interface

func (ListMenuReplyValidationError) ErrorName

func (e ListMenuReplyValidationError) ErrorName() string

ErrorName returns error name.

func (ListMenuReplyValidationError) Field

Field function returns field value.

func (ListMenuReplyValidationError) Key

Key function returns key value.

func (ListMenuReplyValidationError) Reason

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

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

Cause function returns cause value.

func (ListMenuRequestValidationError) Error

Error satisfies the builtin error interface

func (ListMenuRequestValidationError) ErrorName

func (e ListMenuRequestValidationError) ErrorName() string

ErrorName returns error name.

func (ListMenuRequestValidationError) Field

Field function returns field value.

func (ListMenuRequestValidationError) Key

Key function returns key value.

func (ListMenuRequestValidationError) Reason

Reason function returns reason value.

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

Deprecated: Use Menu.ProtoReflect.Descriptor instead.

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

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 (m *Menu) ValidateAll() error

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

Deprecated: Use MenuFilter.ProtoReflect.Descriptor instead.

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

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 (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 []error

MenuFilterMultiError is an error wrapping multiple validation errors returned by MenuFilter.ValidateAll() if the designated constraints aren't met.

func (m MenuFilterMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (m MenuFilterMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

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 (e MenuFilterValidationError) Cause() error

Cause function returns cause value.

Error satisfies the builtin error interface

func (e MenuFilterValidationError) ErrorName() string

ErrorName returns error name.

Field function returns field value.

Key function returns key value.

func (e MenuFilterValidationError) Reason() string

Reason function returns reason value.

type MenuMultiError []error

MenuMultiError is an error wrapping multiple validation errors returned by Menu.ValidateAll() if the designated constraints aren't met.

func (m MenuMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (m MenuMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

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.

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 struct {
	// contains filtered or unexported fields
}
func (c *MenuServiceHTTPClientImpl) CreateMenu(ctx context.Context, in *CreateMenuRequest, opts ...http.CallOption) (*Menu, error)
func (c *MenuServiceHTTPClientImpl) UpdateMenu(ctx context.Context, in *UpdateMenuRequest, opts ...http.CallOption) (*Menu, 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 struct {
	// contains filtered or unexported fields
}

MenuValidationError is the validation error returned by Menu.Validate if the designated constraints aren't met.

func (e MenuValidationError) Cause() error

Cause function returns cause value.

func (e MenuValidationError) Error() string

Error satisfies the builtin error interface

func (e MenuValidationError) ErrorName() string

ErrorName returns error name.

func (e MenuValidationError) Field() string

Field function returns field value.

func (e MenuValidationError) Key() bool

Key function returns key value.

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

func (UnimplementedMenuServiceServer) GetAvailableMenus

func (UnimplementedMenuServiceServer) GetMenu

func (UnimplementedMenuServiceServer) ListMenu

func (UnimplementedMenuServiceServer) UpdateMenu

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

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

Cause function returns cause value.

func (UpdateMenuRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateMenuRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateMenuRequestValidationError) Field

Field function returns field value.

func (UpdateMenuRequestValidationError) Key

Key function returns key value.

func (UpdateMenuRequestValidationError) Reason

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

Error satisfies the builtin error interface

func (UpdateMenuValidationError) ErrorName

func (e UpdateMenuValidationError) ErrorName() string

ErrorName returns error name.

func (UpdateMenuValidationError) Field

Field function returns field value.

func (UpdateMenuValidationError) Key

Key function returns key value.

func (UpdateMenuValidationError) Reason

func (e UpdateMenuValidationError) Reason() string

Reason function returns reason value.

Jump to

Keyboard shortcuts

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