v1

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Service_AllFieldType_FullMethodName = "/field.Service/AllFieldType"
	Service_PageField_FullMethodName    = "/field.Service/PageField"
	Service_AddField_FullMethodName     = "/field.Service/AddField"
	Service_UpdateField_FullMethodName  = "/field.Service/UpdateField"
	Service_DeleteField_FullMethodName  = "/field.Service/DeleteField"
)
View Source
const OperationServiceAddField = "/field.Service/AddField"
View Source
const OperationServiceAllFieldType = "/field.Service/AllFieldType"
View Source
const OperationServiceDeleteField = "/field.Service/DeleteField"
View Source
const OperationServicePageField = "/field.Service/PageField"
View Source
const OperationServiceUpdateField = "/field.Service/UpdateField"

Variables

View Source
var File_user_center_field_proto protoreflect.FileDescriptor
View Source
var File_user_center_field_service_proto protoreflect.FileDescriptor
View Source
var Service_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "field.Service",
	HandlerType: (*ServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "AllFieldType",
			Handler:    _Service_AllFieldType_Handler,
		},
		{
			MethodName: "PageField",
			Handler:    _Service_PageField_Handler,
		},
		{
			MethodName: "AddField",
			Handler:    _Service_AddField_Handler,
		},
		{
			MethodName: "UpdateField",
			Handler:    _Service_UpdateField_Handler,
		},
		{
			MethodName: "DeleteField",
			Handler:    _Service_DeleteField_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "user_center_field_service.proto",
}

Service_ServiceDesc is the grpc.ServiceDesc for Service service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterServiceHTTPServer

func RegisterServiceHTTPServer(s *http.Server, srv ServiceHTTPServer)

func RegisterServiceServer

func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer)

Types

type AddFieldReply

type AddFieldReply struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*AddFieldReply) Descriptor deprecated

func (*AddFieldReply) Descriptor() ([]byte, []int)

Deprecated: Use AddFieldReply.ProtoReflect.Descriptor instead.

func (*AddFieldReply) GetId

func (x *AddFieldReply) GetId() uint32

func (*AddFieldReply) ProtoMessage

func (*AddFieldReply) ProtoMessage()

func (*AddFieldReply) ProtoReflect

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

func (*AddFieldReply) Reset

func (x *AddFieldReply) Reset()

func (*AddFieldReply) String

func (x *AddFieldReply) String() string

func (*AddFieldReply) Validate

func (m *AddFieldReply) Validate() error

Validate checks the field values on AddFieldReply 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 (*AddFieldReply) ValidateAll

func (m *AddFieldReply) ValidateAll() error

ValidateAll checks the field values on AddFieldReply 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 AddFieldReplyMultiError, or nil if none found.

type AddFieldReplyMultiError

type AddFieldReplyMultiError []error

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

func (AddFieldReplyMultiError) AllErrors

func (m AddFieldReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AddFieldReplyMultiError) Error

func (m AddFieldReplyMultiError) Error() string

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

type AddFieldReplyValidationError

type AddFieldReplyValidationError struct {
	// contains filtered or unexported fields
}

AddFieldReplyValidationError is the validation error returned by AddFieldReply.Validate if the designated constraints aren't met.

func (AddFieldReplyValidationError) Cause

Cause function returns cause value.

func (AddFieldReplyValidationError) Error

Error satisfies the builtin error interface

func (AddFieldReplyValidationError) ErrorName

func (e AddFieldReplyValidationError) ErrorName() string

ErrorName returns error name.

func (AddFieldReplyValidationError) Field

Field function returns field value.

func (AddFieldReplyValidationError) Key

Key function returns key value.

func (AddFieldReplyValidationError) Reason

Reason function returns reason value.

type AddFieldRequest

type AddFieldRequest struct {
	Keyword     string  `protobuf:"bytes,1,opt,name=keyword,proto3" json:"keyword,omitempty"`
	Type        string  `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	Name        string  `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Description *string `protobuf:"bytes,4,opt,name=description,proto3,oneof" json:"description,omitempty"`
	// contains filtered or unexported fields
}

func (*AddFieldRequest) Descriptor deprecated

func (*AddFieldRequest) Descriptor() ([]byte, []int)

Deprecated: Use AddFieldRequest.ProtoReflect.Descriptor instead.

func (*AddFieldRequest) GetDescription

func (x *AddFieldRequest) GetDescription() string

func (*AddFieldRequest) GetKeyword

func (x *AddFieldRequest) GetKeyword() string

func (*AddFieldRequest) GetName

func (x *AddFieldRequest) GetName() string

func (*AddFieldRequest) GetType

func (x *AddFieldRequest) GetType() string

func (*AddFieldRequest) ProtoMessage

func (*AddFieldRequest) ProtoMessage()

func (*AddFieldRequest) ProtoReflect

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

func (*AddFieldRequest) Reset

func (x *AddFieldRequest) Reset()

func (*AddFieldRequest) String

func (x *AddFieldRequest) String() string

func (*AddFieldRequest) Validate

func (m *AddFieldRequest) Validate() error

Validate checks the field values on AddFieldRequest 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 (*AddFieldRequest) ValidateAll

func (m *AddFieldRequest) ValidateAll() error

ValidateAll checks the field values on AddFieldRequest 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 AddFieldRequestMultiError, or nil if none found.

type AddFieldRequestMultiError

type AddFieldRequestMultiError []error

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

func (AddFieldRequestMultiError) AllErrors

func (m AddFieldRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AddFieldRequestMultiError) Error

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

type AddFieldRequestValidationError

type AddFieldRequestValidationError struct {
	// contains filtered or unexported fields
}

AddFieldRequestValidationError is the validation error returned by AddFieldRequest.Validate if the designated constraints aren't met.

func (AddFieldRequestValidationError) Cause

Cause function returns cause value.

func (AddFieldRequestValidationError) Error

Error satisfies the builtin error interface

func (AddFieldRequestValidationError) ErrorName

func (e AddFieldRequestValidationError) ErrorName() string

ErrorName returns error name.

func (AddFieldRequestValidationError) Field

Field function returns field value.

func (AddFieldRequestValidationError) Key

Key function returns key value.

func (AddFieldRequestValidationError) Reason

Reason function returns reason value.

type AllFieldTypeReply

type AllFieldTypeReply struct {
	List []*AllFieldTypeReplyData `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

func (*AllFieldTypeReply) Descriptor deprecated

func (*AllFieldTypeReply) Descriptor() ([]byte, []int)

Deprecated: Use AllFieldTypeReply.ProtoReflect.Descriptor instead.

func (*AllFieldTypeReply) GetList

func (x *AllFieldTypeReply) GetList() []*AllFieldTypeReplyData

func (*AllFieldTypeReply) ProtoMessage

func (*AllFieldTypeReply) ProtoMessage()

func (*AllFieldTypeReply) ProtoReflect

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

func (*AllFieldTypeReply) Reset

func (x *AllFieldTypeReply) Reset()

func (*AllFieldTypeReply) String

func (x *AllFieldTypeReply) String() string

func (*AllFieldTypeReply) Validate

func (m *AllFieldTypeReply) Validate() error

Validate checks the field values on AllFieldTypeReply 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 (*AllFieldTypeReply) ValidateAll

func (m *AllFieldTypeReply) ValidateAll() error

ValidateAll checks the field values on AllFieldTypeReply 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 AllFieldTypeReplyMultiError, or nil if none found.

type AllFieldTypeReplyData

type AllFieldTypeReplyData struct {
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*AllFieldTypeReplyData) Descriptor deprecated

func (*AllFieldTypeReplyData) Descriptor() ([]byte, []int)

Deprecated: Use AllFieldTypeReplyData.ProtoReflect.Descriptor instead.

func (*AllFieldTypeReplyData) GetName

func (x *AllFieldTypeReplyData) GetName() string

func (*AllFieldTypeReplyData) GetType

func (x *AllFieldTypeReplyData) GetType() string

func (*AllFieldTypeReplyData) ProtoMessage

func (*AllFieldTypeReplyData) ProtoMessage()

func (*AllFieldTypeReplyData) ProtoReflect

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

func (*AllFieldTypeReplyData) Reset

func (x *AllFieldTypeReplyData) Reset()

func (*AllFieldTypeReplyData) String

func (x *AllFieldTypeReplyData) String() string

func (*AllFieldTypeReplyData) Validate

func (m *AllFieldTypeReplyData) Validate() error

Validate checks the field values on AllFieldTypeReplyData 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 (*AllFieldTypeReplyData) ValidateAll

func (m *AllFieldTypeReplyData) ValidateAll() error

ValidateAll checks the field values on AllFieldTypeReplyData 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 AllFieldTypeReplyDataMultiError, or nil if none found.

type AllFieldTypeReplyDataMultiError

type AllFieldTypeReplyDataMultiError []error

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

func (AllFieldTypeReplyDataMultiError) AllErrors

func (m AllFieldTypeReplyDataMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AllFieldTypeReplyDataMultiError) Error

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

type AllFieldTypeReplyDataValidationError

type AllFieldTypeReplyDataValidationError struct {
	// contains filtered or unexported fields
}

AllFieldTypeReplyDataValidationError is the validation error returned by AllFieldTypeReplyData.Validate if the designated constraints aren't met.

func (AllFieldTypeReplyDataValidationError) Cause

Cause function returns cause value.

func (AllFieldTypeReplyDataValidationError) Error

Error satisfies the builtin error interface

func (AllFieldTypeReplyDataValidationError) ErrorName

ErrorName returns error name.

func (AllFieldTypeReplyDataValidationError) Field

Field function returns field value.

func (AllFieldTypeReplyDataValidationError) Key

Key function returns key value.

func (AllFieldTypeReplyDataValidationError) Reason

Reason function returns reason value.

type AllFieldTypeReplyMultiError

type AllFieldTypeReplyMultiError []error

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

func (AllFieldTypeReplyMultiError) AllErrors

func (m AllFieldTypeReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (AllFieldTypeReplyMultiError) Error

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

type AllFieldTypeReplyValidationError

type AllFieldTypeReplyValidationError struct {
	// contains filtered or unexported fields
}

AllFieldTypeReplyValidationError is the validation error returned by AllFieldTypeReply.Validate if the designated constraints aren't met.

func (AllFieldTypeReplyValidationError) Cause

Cause function returns cause value.

func (AllFieldTypeReplyValidationError) Error

Error satisfies the builtin error interface

func (AllFieldTypeReplyValidationError) ErrorName

ErrorName returns error name.

func (AllFieldTypeReplyValidationError) Field

Field function returns field value.

func (AllFieldTypeReplyValidationError) Key

Key function returns key value.

func (AllFieldTypeReplyValidationError) Reason

Reason function returns reason value.

type CurrentFieldReply

type CurrentFieldReply struct {
	List []*Field `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

func (*CurrentFieldReply) Descriptor deprecated

func (*CurrentFieldReply) Descriptor() ([]byte, []int)

Deprecated: Use CurrentFieldReply.ProtoReflect.Descriptor instead.

func (*CurrentFieldReply) GetList

func (x *CurrentFieldReply) GetList() []*Field

func (*CurrentFieldReply) ProtoMessage

func (*CurrentFieldReply) ProtoMessage()

func (*CurrentFieldReply) ProtoReflect

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

func (*CurrentFieldReply) Reset

func (x *CurrentFieldReply) Reset()

func (*CurrentFieldReply) String

func (x *CurrentFieldReply) String() string

func (*CurrentFieldReply) Validate

func (m *CurrentFieldReply) Validate() error

Validate checks the field values on CurrentFieldReply 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 (*CurrentFieldReply) ValidateAll

func (m *CurrentFieldReply) ValidateAll() error

ValidateAll checks the field values on CurrentFieldReply 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 CurrentFieldReplyMultiError, or nil if none found.

type CurrentFieldReplyMultiError

type CurrentFieldReplyMultiError []error

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

func (CurrentFieldReplyMultiError) AllErrors

func (m CurrentFieldReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CurrentFieldReplyMultiError) Error

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

type CurrentFieldReplyValidationError

type CurrentFieldReplyValidationError struct {
	// contains filtered or unexported fields
}

CurrentFieldReplyValidationError is the validation error returned by CurrentFieldReply.Validate if the designated constraints aren't met.

func (CurrentFieldReplyValidationError) Cause

Cause function returns cause value.

func (CurrentFieldReplyValidationError) Error

Error satisfies the builtin error interface

func (CurrentFieldReplyValidationError) ErrorName

ErrorName returns error name.

func (CurrentFieldReplyValidationError) Field

Field function returns field value.

func (CurrentFieldReplyValidationError) Key

Key function returns key value.

func (CurrentFieldReplyValidationError) Reason

Reason function returns reason value.

type DeleteFieldRequest

type DeleteFieldRequest struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteFieldRequest) Descriptor deprecated

func (*DeleteFieldRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteFieldRequest.ProtoReflect.Descriptor instead.

func (*DeleteFieldRequest) GetId

func (x *DeleteFieldRequest) GetId() uint32

func (*DeleteFieldRequest) ProtoMessage

func (*DeleteFieldRequest) ProtoMessage()

func (*DeleteFieldRequest) ProtoReflect

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

func (*DeleteFieldRequest) Reset

func (x *DeleteFieldRequest) Reset()

func (*DeleteFieldRequest) String

func (x *DeleteFieldRequest) String() string

func (*DeleteFieldRequest) Validate

func (m *DeleteFieldRequest) Validate() error

Validate checks the field values on DeleteFieldRequest 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 (*DeleteFieldRequest) ValidateAll

func (m *DeleteFieldRequest) ValidateAll() error

ValidateAll checks the field values on DeleteFieldRequest 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 DeleteFieldRequestMultiError, or nil if none found.

type DeleteFieldRequestMultiError

type DeleteFieldRequestMultiError []error

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

func (DeleteFieldRequestMultiError) AllErrors

func (m DeleteFieldRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteFieldRequestMultiError) Error

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

type DeleteFieldRequestValidationError

type DeleteFieldRequestValidationError struct {
	// contains filtered or unexported fields
}

DeleteFieldRequestValidationError is the validation error returned by DeleteFieldRequest.Validate if the designated constraints aren't met.

func (DeleteFieldRequestValidationError) Cause

Cause function returns cause value.

func (DeleteFieldRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteFieldRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteFieldRequestValidationError) Field

Field function returns field value.

func (DeleteFieldRequestValidationError) Key

Key function returns key value.

func (DeleteFieldRequestValidationError) Reason

Reason function returns reason value.

type Field

type Field struct {
	Id          uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Keyword     string `protobuf:"bytes,2,opt,name=keyword,proto3" json:"keyword,omitempty"`
	Type        string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
	Name        string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`
	CreatedAt   uint32 `protobuf:"varint,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt   uint32 `protobuf:"varint,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Field) Descriptor deprecated

func (*Field) Descriptor() ([]byte, []int)

Deprecated: Use Field.ProtoReflect.Descriptor instead.

func (*Field) GetCreatedAt

func (x *Field) GetCreatedAt() uint32

func (*Field) GetDescription

func (x *Field) GetDescription() string

func (*Field) GetId

func (x *Field) GetId() uint32

func (*Field) GetKeyword

func (x *Field) GetKeyword() string

func (*Field) GetName

func (x *Field) GetName() string

func (*Field) GetType

func (x *Field) GetType() string

func (*Field) GetUpdatedAt

func (x *Field) GetUpdatedAt() uint32

func (*Field) ProtoMessage

func (*Field) ProtoMessage()

func (*Field) ProtoReflect

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

func (*Field) Reset

func (x *Field) Reset()

func (*Field) String

func (x *Field) String() string

func (*Field) Validate

func (m *Field) Validate() error

Validate checks the field values on Field 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 (*Field) ValidateAll

func (m *Field) ValidateAll() error

ValidateAll checks the field values on Field 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 FieldMultiError, or nil if none found.

type FieldMultiError

type FieldMultiError []error

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

func (FieldMultiError) AllErrors

func (m FieldMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FieldMultiError) Error

func (m FieldMultiError) Error() string

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

type FieldValidationError

type FieldValidationError struct {
	// contains filtered or unexported fields
}

FieldValidationError is the validation error returned by Field.Validate if the designated constraints aren't met.

func (FieldValidationError) Cause

func (e FieldValidationError) Cause() error

Cause function returns cause value.

func (FieldValidationError) Error

func (e FieldValidationError) Error() string

Error satisfies the builtin error interface

func (FieldValidationError) ErrorName

func (e FieldValidationError) ErrorName() string

ErrorName returns error name.

func (FieldValidationError) Field

func (e FieldValidationError) Field() string

Field function returns field value.

func (FieldValidationError) Key

func (e FieldValidationError) Key() bool

Key function returns key value.

func (FieldValidationError) Reason

func (e FieldValidationError) Reason() string

Reason function returns reason value.

type PageFieldReply

type PageFieldReply struct {
	Total uint32   `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	List  []*Field `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

func (*PageFieldReply) Descriptor deprecated

func (*PageFieldReply) Descriptor() ([]byte, []int)

Deprecated: Use PageFieldReply.ProtoReflect.Descriptor instead.

func (*PageFieldReply) GetList

func (x *PageFieldReply) GetList() []*Field

func (*PageFieldReply) GetTotal

func (x *PageFieldReply) GetTotal() uint32

func (*PageFieldReply) ProtoMessage

func (*PageFieldReply) ProtoMessage()

func (*PageFieldReply) ProtoReflect

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

func (*PageFieldReply) Reset

func (x *PageFieldReply) Reset()

func (*PageFieldReply) String

func (x *PageFieldReply) String() string

func (*PageFieldReply) Validate

func (m *PageFieldReply) Validate() error

Validate checks the field values on PageFieldReply 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 (*PageFieldReply) ValidateAll

func (m *PageFieldReply) ValidateAll() error

ValidateAll checks the field values on PageFieldReply 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 PageFieldReplyMultiError, or nil if none found.

type PageFieldReplyMultiError

type PageFieldReplyMultiError []error

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

func (PageFieldReplyMultiError) AllErrors

func (m PageFieldReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PageFieldReplyMultiError) Error

func (m PageFieldReplyMultiError) Error() string

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

type PageFieldReplyValidationError

type PageFieldReplyValidationError struct {
	// contains filtered or unexported fields
}

PageFieldReplyValidationError is the validation error returned by PageFieldReply.Validate if the designated constraints aren't met.

func (PageFieldReplyValidationError) Cause

Cause function returns cause value.

func (PageFieldReplyValidationError) Error

Error satisfies the builtin error interface

func (PageFieldReplyValidationError) ErrorName

func (e PageFieldReplyValidationError) ErrorName() string

ErrorName returns error name.

func (PageFieldReplyValidationError) Field

Field function returns field value.

func (PageFieldReplyValidationError) Key

Key function returns key value.

func (PageFieldReplyValidationError) Reason

Reason function returns reason value.

type PageFieldRequest

type PageFieldRequest struct {
	Page     uint32  `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	PageSize uint32  `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	Keyword  *string `protobuf:"bytes,3,opt,name=keyword,proto3,oneof" json:"keyword,omitempty"`
	Name     *string `protobuf:"bytes,4,opt,name=name,proto3,oneof" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*PageFieldRequest) Descriptor deprecated

func (*PageFieldRequest) Descriptor() ([]byte, []int)

Deprecated: Use PageFieldRequest.ProtoReflect.Descriptor instead.

func (*PageFieldRequest) GetKeyword

func (x *PageFieldRequest) GetKeyword() string

func (*PageFieldRequest) GetName

func (x *PageFieldRequest) GetName() string

func (*PageFieldRequest) GetPage

func (x *PageFieldRequest) GetPage() uint32

func (*PageFieldRequest) GetPageSize

func (x *PageFieldRequest) GetPageSize() uint32

func (*PageFieldRequest) ProtoMessage

func (*PageFieldRequest) ProtoMessage()

func (*PageFieldRequest) ProtoReflect

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

func (*PageFieldRequest) Reset

func (x *PageFieldRequest) Reset()

func (*PageFieldRequest) String

func (x *PageFieldRequest) String() string

func (*PageFieldRequest) Validate

func (m *PageFieldRequest) Validate() error

Validate checks the field values on PageFieldRequest 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 (*PageFieldRequest) ValidateAll

func (m *PageFieldRequest) ValidateAll() error

ValidateAll checks the field values on PageFieldRequest 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 PageFieldRequestMultiError, or nil if none found.

type PageFieldRequestMultiError

type PageFieldRequestMultiError []error

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

func (PageFieldRequestMultiError) AllErrors

func (m PageFieldRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PageFieldRequestMultiError) Error

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

type PageFieldRequestValidationError

type PageFieldRequestValidationError struct {
	// contains filtered or unexported fields
}

PageFieldRequestValidationError is the validation error returned by PageFieldRequest.Validate if the designated constraints aren't met.

func (PageFieldRequestValidationError) Cause

Cause function returns cause value.

func (PageFieldRequestValidationError) Error

Error satisfies the builtin error interface

func (PageFieldRequestValidationError) ErrorName

ErrorName returns error name.

func (PageFieldRequestValidationError) Field

Field function returns field value.

func (PageFieldRequestValidationError) Key

Key function returns key value.

func (PageFieldRequestValidationError) Reason

Reason function returns reason value.

type ServiceClient

type ServiceClient interface {
	AllFieldType(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*AllFieldTypeReply, error)
	PageField(ctx context.Context, in *PageFieldRequest, opts ...grpc.CallOption) (*PageFieldReply, error)
	AddField(ctx context.Context, in *AddFieldRequest, opts ...grpc.CallOption) (*AddFieldReply, error)
	UpdateField(ctx context.Context, in *UpdateFieldRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	DeleteField(ctx context.Context, in *DeleteFieldRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

ServiceClient is the client API for Service service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewServiceClient

func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient

type ServiceHTTPClient

type ServiceHTTPClient interface {
	AddField(ctx context.Context, req *AddFieldRequest, opts ...http.CallOption) (rsp *AddFieldReply, err error)
	AllFieldType(ctx context.Context, req *emptypb.Empty, opts ...http.CallOption) (rsp *AllFieldTypeReply, err error)
	DeleteField(ctx context.Context, req *DeleteFieldRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	PageField(ctx context.Context, req *PageFieldRequest, opts ...http.CallOption) (rsp *PageFieldReply, err error)
	UpdateField(ctx context.Context, req *UpdateFieldRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
}

func NewServiceHTTPClient

func NewServiceHTTPClient(client *http.Client) ServiceHTTPClient

type ServiceHTTPClientImpl

type ServiceHTTPClientImpl struct {
	// contains filtered or unexported fields
}

func (*ServiceHTTPClientImpl) AddField

func (*ServiceHTTPClientImpl) AllFieldType

func (c *ServiceHTTPClientImpl) AllFieldType(ctx context.Context, in *emptypb.Empty, opts ...http.CallOption) (*AllFieldTypeReply, error)

func (*ServiceHTTPClientImpl) DeleteField

func (*ServiceHTTPClientImpl) PageField

func (*ServiceHTTPClientImpl) UpdateField

type ServiceServer

type ServiceServer interface {
	AllFieldType(context.Context, *emptypb.Empty) (*AllFieldTypeReply, error)
	PageField(context.Context, *PageFieldRequest) (*PageFieldReply, error)
	AddField(context.Context, *AddFieldRequest) (*AddFieldReply, error)
	UpdateField(context.Context, *UpdateFieldRequest) (*emptypb.Empty, error)
	DeleteField(context.Context, *DeleteFieldRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

ServiceServer is the server API for Service service. All implementations must embed UnimplementedServiceServer for forward compatibility

type UnimplementedServiceServer

type UnimplementedServiceServer struct {
}

UnimplementedServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedServiceServer) AddField

func (UnimplementedServiceServer) AllFieldType

func (UnimplementedServiceServer) DeleteField

func (UnimplementedServiceServer) PageField

func (UnimplementedServiceServer) UpdateField

type UnsafeServiceServer

type UnsafeServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ServiceServer will result in compilation errors.

type UpdateFieldRequest

type UpdateFieldRequest struct {
	Id          uint32  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Type        string  `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	Name        string  `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Description *string `protobuf:"bytes,4,opt,name=description,proto3,oneof" json:"description,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateFieldRequest) Descriptor deprecated

func (*UpdateFieldRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateFieldRequest.ProtoReflect.Descriptor instead.

func (*UpdateFieldRequest) GetDescription

func (x *UpdateFieldRequest) GetDescription() string

func (*UpdateFieldRequest) GetId

func (x *UpdateFieldRequest) GetId() uint32

func (*UpdateFieldRequest) GetName

func (x *UpdateFieldRequest) GetName() string

func (*UpdateFieldRequest) GetType

func (x *UpdateFieldRequest) GetType() string

func (*UpdateFieldRequest) ProtoMessage

func (*UpdateFieldRequest) ProtoMessage()

func (*UpdateFieldRequest) ProtoReflect

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

func (*UpdateFieldRequest) Reset

func (x *UpdateFieldRequest) Reset()

func (*UpdateFieldRequest) String

func (x *UpdateFieldRequest) String() string

func (*UpdateFieldRequest) Validate

func (m *UpdateFieldRequest) Validate() error

Validate checks the field values on UpdateFieldRequest 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 (*UpdateFieldRequest) ValidateAll

func (m *UpdateFieldRequest) ValidateAll() error

ValidateAll checks the field values on UpdateFieldRequest 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 UpdateFieldRequestMultiError, or nil if none found.

type UpdateFieldRequestMultiError

type UpdateFieldRequestMultiError []error

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

func (UpdateFieldRequestMultiError) AllErrors

func (m UpdateFieldRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateFieldRequestMultiError) Error

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

type UpdateFieldRequestValidationError

type UpdateFieldRequestValidationError struct {
	// contains filtered or unexported fields
}

UpdateFieldRequestValidationError is the validation error returned by UpdateFieldRequest.Validate if the designated constraints aren't met.

func (UpdateFieldRequestValidationError) Cause

Cause function returns cause value.

func (UpdateFieldRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateFieldRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateFieldRequestValidationError) Field

Field function returns field value.

func (UpdateFieldRequestValidationError) Key

Key function returns key value.

func (UpdateFieldRequestValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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