Documentation ¶
Overview ¶
Package v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterBoxHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterBoxHandlerClient(ctx context.Context, mux *runtime.ServeMux, client BoxClient) error
- func RegisterBoxHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterBoxHandlerServer(ctx context.Context, mux *runtime.ServeMux, server BoxServer) error
- func RegisterBoxServer(s grpc.ServiceRegistrar, srv BoxServer)
- type BoxClient
- type BoxServer
- type FormGetReq
- type FormGetReqValidationError
- type FormGetResp
- func (*FormGetResp) Descriptor() ([]byte, []int)deprecated
- func (x *FormGetResp) GetForm() *FormStruct
- func (*FormGetResp) ProtoMessage()
- func (x *FormGetResp) ProtoReflect() protoreflect.Message
- func (x *FormGetResp) Reset()
- func (x *FormGetResp) String() string
- func (m *FormGetResp) Validate() error
- type FormGetRespValidationError
- func (e FormGetRespValidationError) Cause() error
- func (e FormGetRespValidationError) Error() string
- func (e FormGetRespValidationError) ErrorName() string
- func (e FormGetRespValidationError) Field() string
- func (e FormGetRespValidationError) Key() bool
- func (e FormGetRespValidationError) Reason() string
- type FormItemContent
- func (*FormItemContent) Descriptor() ([]byte, []int)deprecated
- func (x *FormItemContent) GetContentTitle() string
- func (x *FormItemContent) GetContentType() string
- func (x *FormItemContent) GetContentUuid() string
- func (x *FormItemContent) GetExtend() *FormItemContentExtend
- func (x *FormItemContent) GetOptions() []*FormItemContentOptions
- func (x *FormItemContent) GetUserAnswer() *UserAnswer
- func (*FormItemContent) ProtoMessage()
- func (x *FormItemContent) ProtoReflect() protoreflect.Message
- func (x *FormItemContent) Reset()
- func (x *FormItemContent) String() string
- func (m *FormItemContent) Validate() error
- type FormItemContentExtend
- func (*FormItemContentExtend) Descriptor() ([]byte, []int)deprecated
- func (x *FormItemContentExtend) GetRequire() bool
- func (*FormItemContentExtend) ProtoMessage()
- func (x *FormItemContentExtend) ProtoReflect() protoreflect.Message
- func (x *FormItemContentExtend) Reset()
- func (x *FormItemContentExtend) String() string
- func (m *FormItemContentExtend) Validate() error
- type FormItemContentExtendValidationError
- func (e FormItemContentExtendValidationError) Cause() error
- func (e FormItemContentExtendValidationError) Error() string
- func (e FormItemContentExtendValidationError) ErrorName() string
- func (e FormItemContentExtendValidationError) Field() string
- func (e FormItemContentExtendValidationError) Key() bool
- func (e FormItemContentExtendValidationError) Reason() string
- type FormItemContentOptions
- func (*FormItemContentOptions) Descriptor() ([]byte, []int)deprecated
- func (x *FormItemContentOptions) GetOptionContent() *FormItemContentOptionsContent
- func (x *FormItemContentOptions) GetOptionType() string
- func (x *FormItemContentOptions) GetOptionValue() string
- func (*FormItemContentOptions) ProtoMessage()
- func (x *FormItemContentOptions) ProtoReflect() protoreflect.Message
- func (x *FormItemContentOptions) Reset()
- func (x *FormItemContentOptions) String() string
- func (m *FormItemContentOptions) Validate() error
- type FormItemContentOptionsContent
- func (*FormItemContentOptionsContent) Descriptor() ([]byte, []int)deprecated
- func (x *FormItemContentOptionsContent) GetExplain() string
- func (x *FormItemContentOptionsContent) GetImg() string
- func (x *FormItemContentOptionsContent) GetText() string
- func (*FormItemContentOptionsContent) ProtoMessage()
- func (x *FormItemContentOptionsContent) ProtoReflect() protoreflect.Message
- func (x *FormItemContentOptionsContent) Reset()
- func (x *FormItemContentOptionsContent) String() string
- func (m *FormItemContentOptionsContent) Validate() error
- type FormItemContentOptionsContentValidationError
- func (e FormItemContentOptionsContentValidationError) Cause() error
- func (e FormItemContentOptionsContentValidationError) Error() string
- func (e FormItemContentOptionsContentValidationError) ErrorName() string
- func (e FormItemContentOptionsContentValidationError) Field() string
- func (e FormItemContentOptionsContentValidationError) Key() bool
- func (e FormItemContentOptionsContentValidationError) Reason() string
- type FormItemContentOptionsValidationError
- func (e FormItemContentOptionsValidationError) Cause() error
- func (e FormItemContentOptionsValidationError) Error() string
- func (e FormItemContentOptionsValidationError) ErrorName() string
- func (e FormItemContentOptionsValidationError) Field() string
- func (e FormItemContentOptionsValidationError) Key() bool
- func (e FormItemContentOptionsValidationError) Reason() string
- type FormItemContentValidationError
- func (e FormItemContentValidationError) Cause() error
- func (e FormItemContentValidationError) Error() string
- func (e FormItemContentValidationError) ErrorName() string
- func (e FormItemContentValidationError) Field() string
- func (e FormItemContentValidationError) Key() bool
- func (e FormItemContentValidationError) Reason() string
- type FormItems
- func (*FormItems) Descriptor() ([]byte, []int)deprecated
- func (x *FormItems) GetContent() *FormItemContent
- func (x *FormItems) GetQuestionTypeName() string
- func (*FormItems) ProtoMessage()
- func (x *FormItems) ProtoReflect() protoreflect.Message
- func (x *FormItems) Reset()
- func (x *FormItems) String() string
- func (m *FormItems) Validate() error
- type FormItemsValidationError
- type FormListQuestionTypeResp
- func (*FormListQuestionTypeResp) Descriptor() ([]byte, []int)deprecated
- func (x *FormListQuestionTypeResp) GetList() []*FormItems
- func (*FormListQuestionTypeResp) ProtoMessage()
- func (x *FormListQuestionTypeResp) ProtoReflect() protoreflect.Message
- func (x *FormListQuestionTypeResp) Reset()
- func (x *FormListQuestionTypeResp) String() string
- func (m *FormListQuestionTypeResp) Validate() error
- type FormListQuestionTypeRespValidationError
- func (e FormListQuestionTypeRespValidationError) Cause() error
- func (e FormListQuestionTypeRespValidationError) Error() string
- func (e FormListQuestionTypeRespValidationError) ErrorName() string
- func (e FormListQuestionTypeRespValidationError) Field() string
- func (e FormListQuestionTypeRespValidationError) Key() bool
- func (e FormListQuestionTypeRespValidationError) Reason() string
- type FormListReq
- type FormListReqValidationError
- func (e FormListReqValidationError) Cause() error
- func (e FormListReqValidationError) Error() string
- func (e FormListReqValidationError) ErrorName() string
- func (e FormListReqValidationError) Field() string
- func (e FormListReqValidationError) Key() bool
- func (e FormListReqValidationError) Reason() string
- type FormListResp
- func (*FormListResp) Descriptor() ([]byte, []int)deprecated
- func (x *FormListResp) GetList() []*FormListResp_FormList
- func (*FormListResp) ProtoMessage()
- func (x *FormListResp) ProtoReflect() protoreflect.Message
- func (x *FormListResp) Reset()
- func (x *FormListResp) String() string
- func (m *FormListResp) Validate() error
- type FormListRespValidationError
- func (e FormListRespValidationError) Cause() error
- func (e FormListRespValidationError) Error() string
- func (e FormListRespValidationError) ErrorName() string
- func (e FormListRespValidationError) Field() string
- func (e FormListRespValidationError) Key() bool
- func (e FormListRespValidationError) Reason() string
- type FormListResp_FormList
- func (*FormListResp_FormList) Descriptor() ([]byte, []int)deprecated
- func (x *FormListResp_FormList) GetFormTitle() string
- func (x *FormListResp_FormList) GetSubTitle() string
- func (x *FormListResp_FormList) GetUuid() string
- func (*FormListResp_FormList) ProtoMessage()
- func (x *FormListResp_FormList) ProtoReflect() protoreflect.Message
- func (x *FormListResp_FormList) Reset()
- func (x *FormListResp_FormList) String() string
- func (m *FormListResp_FormList) Validate() error
- type FormListResp_FormListValidationError
- func (e FormListResp_FormListValidationError) Cause() error
- func (e FormListResp_FormListValidationError) Error() string
- func (e FormListResp_FormListValidationError) ErrorName() string
- func (e FormListResp_FormListValidationError) Field() string
- func (e FormListResp_FormListValidationError) Key() bool
- func (e FormListResp_FormListValidationError) Reason() string
- type FormSaveReq
- func (*FormSaveReq) Descriptor() ([]byte, []int)deprecated
- func (x *FormSaveReq) GetForm() *FormStruct
- func (*FormSaveReq) ProtoMessage()
- func (x *FormSaveReq) ProtoReflect() protoreflect.Message
- func (x *FormSaveReq) Reset()
- func (x *FormSaveReq) String() string
- func (m *FormSaveReq) Validate() error
- type FormSaveReqValidationError
- func (e FormSaveReqValidationError) Cause() error
- func (e FormSaveReqValidationError) Error() string
- func (e FormSaveReqValidationError) ErrorName() string
- func (e FormSaveReqValidationError) Field() string
- func (e FormSaveReqValidationError) Key() bool
- func (e FormSaveReqValidationError) Reason() string
- type FormStruct
- func (*FormStruct) Descriptor() ([]byte, []int)deprecated
- func (x *FormStruct) GetFormTitle() string
- func (x *FormStruct) GetFormUuid() string
- func (x *FormStruct) GetItems() []*FormItems
- func (x *FormStruct) GetSubTitle() string
- func (*FormStruct) ProtoMessage()
- func (x *FormStruct) ProtoReflect() protoreflect.Message
- func (x *FormStruct) Reset()
- func (x *FormStruct) String() string
- func (m *FormStruct) Validate() error
- type FormStructValidationError
- type Result
- func (*Result) Descriptor() ([]byte, []int)deprecated
- func (x *Result) GetCode() int64
- func (x *Result) GetData() *anypb.Any
- func (x *Result) GetMessage() string
- func (*Result) ProtoMessage()
- func (x *Result) ProtoReflect() protoreflect.Message
- func (x *Result) Reset()
- func (x *Result) String() string
- func (m *Result) Validate() error
- type ResultValidationError
- type UnimplementedBoxServer
- func (UnimplementedBoxServer) FormAnswerSave(context.Context, *FormSaveReq) (*emptypb.Empty, error)
- func (UnimplementedBoxServer) FormGet(context.Context, *FormGetReq) (*FormGetResp, error)
- func (UnimplementedBoxServer) FormList(context.Context, *FormListReq) (*FormListResp, error)
- func (UnimplementedBoxServer) FormListQuestionType(context.Context, *emptypb.Empty) (*FormListQuestionTypeResp, error)
- func (UnimplementedBoxServer) FormSave(context.Context, *FormSaveReq) (*emptypb.Empty, error)
- func (UnimplementedBoxServer) Ping(context.Context, *emptypb.Empty) (*Result, error)
- type UnsafeBoxServer
- type UserAnswer
- func (*UserAnswer) Descriptor() ([]byte, []int)deprecated
- func (x *UserAnswer) GetArrValue() []string
- func (x *UserAnswer) GetOther() string
- func (x *UserAnswer) GetSelect() string
- func (*UserAnswer) ProtoMessage()
- func (x *UserAnswer) ProtoReflect() protoreflect.Message
- func (x *UserAnswer) Reset()
- func (x *UserAnswer) String() string
- func (m *UserAnswer) Validate() error
- type UserAnswerValidationError
Constants ¶
This section is empty.
Variables ¶
var Box_ServiceDesc = grpc.ServiceDesc{ ServiceName: "golayout.v1.Box", HandlerType: (*BoxServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Ping", Handler: _Box_Ping_Handler, }, { MethodName: "FormListQuestionType", Handler: _Box_FormListQuestionType_Handler, }, { MethodName: "FormGet", Handler: _Box_FormGet_Handler, }, { MethodName: "FormSave", Handler: _Box_FormSave_Handler, }, { MethodName: "FormAnswerSave", Handler: _Box_FormAnswerSave_Handler, }, { MethodName: "FormList", Handler: _Box_FormList_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/v1/box.proto", }
Box_ServiceDesc is the grpc.ServiceDesc for Box service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_api_v1_box_proto protoreflect.FileDescriptor
Functions ¶
func RegisterBoxHandler ¶
RegisterBoxHandler registers the http handlers for service Box to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterBoxHandlerClient ¶
RegisterBoxHandlerClient registers the http handlers for service Box to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "BoxClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "BoxClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "BoxClient" to call the correct interceptors.
func RegisterBoxHandlerFromEndpoint ¶
func RegisterBoxHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterBoxHandlerFromEndpoint is same as RegisterBoxHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterBoxHandlerServer ¶
RegisterBoxHandlerServer registers the http handlers for service Box to "mux". UnaryRPC :call BoxServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterBoxHandlerFromEndpoint instead.
func RegisterBoxServer ¶
func RegisterBoxServer(s grpc.ServiceRegistrar, srv BoxServer)
Types ¶
type BoxClient ¶
type BoxClient interface { Ping(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*Result, error) FormListQuestionType(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*FormListQuestionTypeResp, error) FormGet(ctx context.Context, in *FormGetReq, opts ...grpc.CallOption) (*FormGetResp, error) FormSave(ctx context.Context, in *FormSaveReq, opts ...grpc.CallOption) (*emptypb.Empty, error) FormAnswerSave(ctx context.Context, in *FormSaveReq, opts ...grpc.CallOption) (*emptypb.Empty, error) FormList(ctx context.Context, in *FormListReq, opts ...grpc.CallOption) (*FormListResp, error) }
BoxClient is the client API for Box 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 NewBoxClient ¶
func NewBoxClient(cc grpc.ClientConnInterface) BoxClient
type BoxServer ¶
type BoxServer interface { Ping(context.Context, *emptypb.Empty) (*Result, error) FormListQuestionType(context.Context, *emptypb.Empty) (*FormListQuestionTypeResp, error) FormGet(context.Context, *FormGetReq) (*FormGetResp, error) FormSave(context.Context, *FormSaveReq) (*emptypb.Empty, error) FormAnswerSave(context.Context, *FormSaveReq) (*emptypb.Empty, error) FormList(context.Context, *FormListReq) (*FormListResp, error) // contains filtered or unexported methods }
BoxServer is the server API for Box service. All implementations must embed UnimplementedBoxServer for forward compatibility
type FormGetReq ¶
type FormGetReq struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` // contains filtered or unexported fields }
func (*FormGetReq) Descriptor
deprecated
func (*FormGetReq) Descriptor() ([]byte, []int)
Deprecated: Use FormGetReq.ProtoReflect.Descriptor instead.
func (*FormGetReq) GetUuid ¶
func (x *FormGetReq) GetUuid() string
func (*FormGetReq) ProtoMessage ¶
func (*FormGetReq) ProtoMessage()
func (*FormGetReq) ProtoReflect ¶
func (x *FormGetReq) ProtoReflect() protoreflect.Message
func (*FormGetReq) Reset ¶
func (x *FormGetReq) Reset()
func (*FormGetReq) String ¶
func (x *FormGetReq) String() string
func (*FormGetReq) Validate ¶
func (m *FormGetReq) Validate() error
Validate checks the field values on FormGetReq with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type FormGetReqValidationError ¶
type FormGetReqValidationError struct {
// contains filtered or unexported fields
}
FormGetReqValidationError is the validation error returned by FormGetReq.Validate if the designated constraints aren't met.
func (FormGetReqValidationError) Cause ¶
func (e FormGetReqValidationError) Cause() error
Cause function returns cause value.
func (FormGetReqValidationError) Error ¶
func (e FormGetReqValidationError) Error() string
Error satisfies the builtin error interface
func (FormGetReqValidationError) ErrorName ¶
func (e FormGetReqValidationError) ErrorName() string
ErrorName returns error name.
func (FormGetReqValidationError) Field ¶
func (e FormGetReqValidationError) Field() string
Field function returns field value.
func (FormGetReqValidationError) Key ¶
func (e FormGetReqValidationError) Key() bool
Key function returns key value.
func (FormGetReqValidationError) Reason ¶
func (e FormGetReqValidationError) Reason() string
Reason function returns reason value.
type FormGetResp ¶
type FormGetResp struct { Form *FormStruct `protobuf:"bytes,1,opt,name=form,proto3" json:"form,omitempty"` // contains filtered or unexported fields }
func (*FormGetResp) Descriptor
deprecated
func (*FormGetResp) Descriptor() ([]byte, []int)
Deprecated: Use FormGetResp.ProtoReflect.Descriptor instead.
func (*FormGetResp) GetForm ¶
func (x *FormGetResp) GetForm() *FormStruct
func (*FormGetResp) ProtoMessage ¶
func (*FormGetResp) ProtoMessage()
func (*FormGetResp) ProtoReflect ¶
func (x *FormGetResp) ProtoReflect() protoreflect.Message
func (*FormGetResp) Reset ¶
func (x *FormGetResp) Reset()
func (*FormGetResp) String ¶
func (x *FormGetResp) String() string
func (*FormGetResp) Validate ¶
func (m *FormGetResp) Validate() error
Validate checks the field values on FormGetResp with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type FormGetRespValidationError ¶
type FormGetRespValidationError struct {
// contains filtered or unexported fields
}
FormGetRespValidationError is the validation error returned by FormGetResp.Validate if the designated constraints aren't met.
func (FormGetRespValidationError) Cause ¶
func (e FormGetRespValidationError) Cause() error
Cause function returns cause value.
func (FormGetRespValidationError) Error ¶
func (e FormGetRespValidationError) Error() string
Error satisfies the builtin error interface
func (FormGetRespValidationError) ErrorName ¶
func (e FormGetRespValidationError) ErrorName() string
ErrorName returns error name.
func (FormGetRespValidationError) Field ¶
func (e FormGetRespValidationError) Field() string
Field function returns field value.
func (FormGetRespValidationError) Key ¶
func (e FormGetRespValidationError) Key() bool
Key function returns key value.
func (FormGetRespValidationError) Reason ¶
func (e FormGetRespValidationError) Reason() string
Reason function returns reason value.
type FormItemContent ¶
type FormItemContent struct { ContentTitle string `protobuf:"bytes,1,opt,name=content_title,json=contentTitle,proto3" json:"content_title,omitempty"` ContentType string `protobuf:"bytes,2,opt,name=content_type,json=contentType,proto3" json:"content_type,omitempty"` ContentUuid string `protobuf:"bytes,3,opt,name=content_uuid,json=contentUuid,proto3" json:"content_uuid,omitempty"` Options []*FormItemContentOptions `protobuf:"bytes,4,rep,name=options,proto3" json:"options,omitempty"` Extend *FormItemContentExtend `protobuf:"bytes,5,opt,name=extend,proto3" json:"extend,omitempty"` UserAnswer *UserAnswer `protobuf:"bytes,6,opt,name=user_answer,json=userAnswer,proto3" json:"user_answer,omitempty"` // contains filtered or unexported fields }
func (*FormItemContent) Descriptor
deprecated
func (*FormItemContent) Descriptor() ([]byte, []int)
Deprecated: Use FormItemContent.ProtoReflect.Descriptor instead.
func (*FormItemContent) GetContentTitle ¶
func (x *FormItemContent) GetContentTitle() string
func (*FormItemContent) GetContentType ¶
func (x *FormItemContent) GetContentType() string
func (*FormItemContent) GetContentUuid ¶
func (x *FormItemContent) GetContentUuid() string
func (*FormItemContent) GetExtend ¶
func (x *FormItemContent) GetExtend() *FormItemContentExtend
func (*FormItemContent) GetOptions ¶
func (x *FormItemContent) GetOptions() []*FormItemContentOptions
func (*FormItemContent) GetUserAnswer ¶
func (x *FormItemContent) GetUserAnswer() *UserAnswer
func (*FormItemContent) ProtoMessage ¶
func (*FormItemContent) ProtoMessage()
func (*FormItemContent) ProtoReflect ¶
func (x *FormItemContent) ProtoReflect() protoreflect.Message
func (*FormItemContent) Reset ¶
func (x *FormItemContent) Reset()
func (*FormItemContent) String ¶
func (x *FormItemContent) String() string
func (*FormItemContent) Validate ¶
func (m *FormItemContent) Validate() error
Validate checks the field values on FormItemContent with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type FormItemContentExtend ¶
type FormItemContentExtend struct { Require bool `protobuf:"varint,1,opt,name=require,proto3" json:"require,omitempty"` // contains filtered or unexported fields }
func (*FormItemContentExtend) Descriptor
deprecated
func (*FormItemContentExtend) Descriptor() ([]byte, []int)
Deprecated: Use FormItemContentExtend.ProtoReflect.Descriptor instead.
func (*FormItemContentExtend) GetRequire ¶
func (x *FormItemContentExtend) GetRequire() bool
func (*FormItemContentExtend) ProtoMessage ¶
func (*FormItemContentExtend) ProtoMessage()
func (*FormItemContentExtend) ProtoReflect ¶
func (x *FormItemContentExtend) ProtoReflect() protoreflect.Message
func (*FormItemContentExtend) Reset ¶
func (x *FormItemContentExtend) Reset()
func (*FormItemContentExtend) String ¶
func (x *FormItemContentExtend) String() string
func (*FormItemContentExtend) Validate ¶
func (m *FormItemContentExtend) Validate() error
Validate checks the field values on FormItemContentExtend with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type FormItemContentExtendValidationError ¶
type FormItemContentExtendValidationError struct {
// contains filtered or unexported fields
}
FormItemContentExtendValidationError is the validation error returned by FormItemContentExtend.Validate if the designated constraints aren't met.
func (FormItemContentExtendValidationError) Cause ¶
func (e FormItemContentExtendValidationError) Cause() error
Cause function returns cause value.
func (FormItemContentExtendValidationError) Error ¶
func (e FormItemContentExtendValidationError) Error() string
Error satisfies the builtin error interface
func (FormItemContentExtendValidationError) ErrorName ¶
func (e FormItemContentExtendValidationError) ErrorName() string
ErrorName returns error name.
func (FormItemContentExtendValidationError) Field ¶
func (e FormItemContentExtendValidationError) Field() string
Field function returns field value.
func (FormItemContentExtendValidationError) Key ¶
func (e FormItemContentExtendValidationError) Key() bool
Key function returns key value.
func (FormItemContentExtendValidationError) Reason ¶
func (e FormItemContentExtendValidationError) Reason() string
Reason function returns reason value.
type FormItemContentOptions ¶
type FormItemContentOptions struct { OptionType string `protobuf:"bytes,1,opt,name=option_type,json=optionType,proto3" json:"option_type,omitempty"` OptionValue string `protobuf:"bytes,2,opt,name=option_value,json=optionValue,proto3" json:"option_value,omitempty"` OptionContent *FormItemContentOptionsContent `protobuf:"bytes,3,opt,name=option_content,json=optionContent,proto3" json:"option_content,omitempty"` // contains filtered or unexported fields }
func (*FormItemContentOptions) Descriptor
deprecated
func (*FormItemContentOptions) Descriptor() ([]byte, []int)
Deprecated: Use FormItemContentOptions.ProtoReflect.Descriptor instead.
func (*FormItemContentOptions) GetOptionContent ¶
func (x *FormItemContentOptions) GetOptionContent() *FormItemContentOptionsContent
func (*FormItemContentOptions) GetOptionType ¶
func (x *FormItemContentOptions) GetOptionType() string
func (*FormItemContentOptions) GetOptionValue ¶
func (x *FormItemContentOptions) GetOptionValue() string
func (*FormItemContentOptions) ProtoMessage ¶
func (*FormItemContentOptions) ProtoMessage()
func (*FormItemContentOptions) ProtoReflect ¶
func (x *FormItemContentOptions) ProtoReflect() protoreflect.Message
func (*FormItemContentOptions) Reset ¶
func (x *FormItemContentOptions) Reset()
func (*FormItemContentOptions) String ¶
func (x *FormItemContentOptions) String() string
func (*FormItemContentOptions) Validate ¶
func (m *FormItemContentOptions) Validate() error
Validate checks the field values on FormItemContentOptions with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type FormItemContentOptionsContent ¶
type FormItemContentOptionsContent struct { Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` Explain string `protobuf:"bytes,2,opt,name=explain,proto3" json:"explain,omitempty"` Img string `protobuf:"bytes,3,opt,name=img,proto3" json:"img,omitempty"` // contains filtered or unexported fields }
func (*FormItemContentOptionsContent) Descriptor
deprecated
func (*FormItemContentOptionsContent) Descriptor() ([]byte, []int)
Deprecated: Use FormItemContentOptionsContent.ProtoReflect.Descriptor instead.
func (*FormItemContentOptionsContent) GetExplain ¶
func (x *FormItemContentOptionsContent) GetExplain() string
func (*FormItemContentOptionsContent) GetImg ¶
func (x *FormItemContentOptionsContent) GetImg() string
func (*FormItemContentOptionsContent) GetText ¶
func (x *FormItemContentOptionsContent) GetText() string
func (*FormItemContentOptionsContent) ProtoMessage ¶
func (*FormItemContentOptionsContent) ProtoMessage()
func (*FormItemContentOptionsContent) ProtoReflect ¶
func (x *FormItemContentOptionsContent) ProtoReflect() protoreflect.Message
func (*FormItemContentOptionsContent) Reset ¶
func (x *FormItemContentOptionsContent) Reset()
func (*FormItemContentOptionsContent) String ¶
func (x *FormItemContentOptionsContent) String() string
func (*FormItemContentOptionsContent) Validate ¶
func (m *FormItemContentOptionsContent) Validate() error
Validate checks the field values on FormItemContentOptionsContent with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type FormItemContentOptionsContentValidationError ¶
type FormItemContentOptionsContentValidationError struct {
// contains filtered or unexported fields
}
FormItemContentOptionsContentValidationError is the validation error returned by FormItemContentOptionsContent.Validate if the designated constraints aren't met.
func (FormItemContentOptionsContentValidationError) Cause ¶
func (e FormItemContentOptionsContentValidationError) Cause() error
Cause function returns cause value.
func (FormItemContentOptionsContentValidationError) Error ¶
func (e FormItemContentOptionsContentValidationError) Error() string
Error satisfies the builtin error interface
func (FormItemContentOptionsContentValidationError) ErrorName ¶
func (e FormItemContentOptionsContentValidationError) ErrorName() string
ErrorName returns error name.
func (FormItemContentOptionsContentValidationError) Field ¶
func (e FormItemContentOptionsContentValidationError) Field() string
Field function returns field value.
func (FormItemContentOptionsContentValidationError) Key ¶
func (e FormItemContentOptionsContentValidationError) Key() bool
Key function returns key value.
func (FormItemContentOptionsContentValidationError) Reason ¶
func (e FormItemContentOptionsContentValidationError) Reason() string
Reason function returns reason value.
type FormItemContentOptionsValidationError ¶
type FormItemContentOptionsValidationError struct {
// contains filtered or unexported fields
}
FormItemContentOptionsValidationError is the validation error returned by FormItemContentOptions.Validate if the designated constraints aren't met.
func (FormItemContentOptionsValidationError) Cause ¶
func (e FormItemContentOptionsValidationError) Cause() error
Cause function returns cause value.
func (FormItemContentOptionsValidationError) Error ¶
func (e FormItemContentOptionsValidationError) Error() string
Error satisfies the builtin error interface
func (FormItemContentOptionsValidationError) ErrorName ¶
func (e FormItemContentOptionsValidationError) ErrorName() string
ErrorName returns error name.
func (FormItemContentOptionsValidationError) Field ¶
func (e FormItemContentOptionsValidationError) Field() string
Field function returns field value.
func (FormItemContentOptionsValidationError) Key ¶
func (e FormItemContentOptionsValidationError) Key() bool
Key function returns key value.
func (FormItemContentOptionsValidationError) Reason ¶
func (e FormItemContentOptionsValidationError) Reason() string
Reason function returns reason value.
type FormItemContentValidationError ¶
type FormItemContentValidationError struct {
// contains filtered or unexported fields
}
FormItemContentValidationError is the validation error returned by FormItemContent.Validate if the designated constraints aren't met.
func (FormItemContentValidationError) Cause ¶
func (e FormItemContentValidationError) Cause() error
Cause function returns cause value.
func (FormItemContentValidationError) Error ¶
func (e FormItemContentValidationError) Error() string
Error satisfies the builtin error interface
func (FormItemContentValidationError) ErrorName ¶
func (e FormItemContentValidationError) ErrorName() string
ErrorName returns error name.
func (FormItemContentValidationError) Field ¶
func (e FormItemContentValidationError) Field() string
Field function returns field value.
func (FormItemContentValidationError) Key ¶
func (e FormItemContentValidationError) Key() bool
Key function returns key value.
func (FormItemContentValidationError) Reason ¶
func (e FormItemContentValidationError) Reason() string
Reason function returns reason value.
type FormItems ¶
type FormItems struct { Content *FormItemContent `protobuf:"bytes,1,opt,name=content,proto3" json:"content,omitempty"` QuestionTypeName string `protobuf:"bytes,2,opt,name=question_type_name,json=questionTypeName,proto3" json:"question_type_name,omitempty"` // contains filtered or unexported fields }
func (*FormItems) Descriptor
deprecated
func (*FormItems) GetContent ¶
func (x *FormItems) GetContent() *FormItemContent
func (*FormItems) GetQuestionTypeName ¶
func (*FormItems) ProtoMessage ¶
func (*FormItems) ProtoMessage()
func (*FormItems) ProtoReflect ¶
func (x *FormItems) ProtoReflect() protoreflect.Message
type FormItemsValidationError ¶
type FormItemsValidationError struct {
// contains filtered or unexported fields
}
FormItemsValidationError is the validation error returned by FormItems.Validate if the designated constraints aren't met.
func (FormItemsValidationError) Cause ¶
func (e FormItemsValidationError) Cause() error
Cause function returns cause value.
func (FormItemsValidationError) Error ¶
func (e FormItemsValidationError) Error() string
Error satisfies the builtin error interface
func (FormItemsValidationError) ErrorName ¶
func (e FormItemsValidationError) ErrorName() string
ErrorName returns error name.
func (FormItemsValidationError) Field ¶
func (e FormItemsValidationError) Field() string
Field function returns field value.
func (FormItemsValidationError) Key ¶
func (e FormItemsValidationError) Key() bool
Key function returns key value.
func (FormItemsValidationError) Reason ¶
func (e FormItemsValidationError) Reason() string
Reason function returns reason value.
type FormListQuestionTypeResp ¶
type FormListQuestionTypeResp struct { List []*FormItems `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*FormListQuestionTypeResp) Descriptor
deprecated
func (*FormListQuestionTypeResp) Descriptor() ([]byte, []int)
Deprecated: Use FormListQuestionTypeResp.ProtoReflect.Descriptor instead.
func (*FormListQuestionTypeResp) GetList ¶
func (x *FormListQuestionTypeResp) GetList() []*FormItems
func (*FormListQuestionTypeResp) ProtoMessage ¶
func (*FormListQuestionTypeResp) ProtoMessage()
func (*FormListQuestionTypeResp) ProtoReflect ¶
func (x *FormListQuestionTypeResp) ProtoReflect() protoreflect.Message
func (*FormListQuestionTypeResp) Reset ¶
func (x *FormListQuestionTypeResp) Reset()
func (*FormListQuestionTypeResp) String ¶
func (x *FormListQuestionTypeResp) String() string
func (*FormListQuestionTypeResp) Validate ¶
func (m *FormListQuestionTypeResp) Validate() error
Validate checks the field values on FormListQuestionTypeResp with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type FormListQuestionTypeRespValidationError ¶
type FormListQuestionTypeRespValidationError struct {
// contains filtered or unexported fields
}
FormListQuestionTypeRespValidationError is the validation error returned by FormListQuestionTypeResp.Validate if the designated constraints aren't met.
func (FormListQuestionTypeRespValidationError) Cause ¶
func (e FormListQuestionTypeRespValidationError) Cause() error
Cause function returns cause value.
func (FormListQuestionTypeRespValidationError) Error ¶
func (e FormListQuestionTypeRespValidationError) Error() string
Error satisfies the builtin error interface
func (FormListQuestionTypeRespValidationError) ErrorName ¶
func (e FormListQuestionTypeRespValidationError) ErrorName() string
ErrorName returns error name.
func (FormListQuestionTypeRespValidationError) Field ¶
func (e FormListQuestionTypeRespValidationError) Field() string
Field function returns field value.
func (FormListQuestionTypeRespValidationError) Key ¶
func (e FormListQuestionTypeRespValidationError) Key() bool
Key function returns key value.
func (FormListQuestionTypeRespValidationError) Reason ¶
func (e FormListQuestionTypeRespValidationError) Reason() string
Reason function returns reason value.
type FormListReq ¶
type FormListReq struct {
// contains filtered or unexported fields
}
func (*FormListReq) Descriptor
deprecated
func (*FormListReq) Descriptor() ([]byte, []int)
Deprecated: Use FormListReq.ProtoReflect.Descriptor instead.
func (*FormListReq) ProtoMessage ¶
func (*FormListReq) ProtoMessage()
func (*FormListReq) ProtoReflect ¶
func (x *FormListReq) ProtoReflect() protoreflect.Message
func (*FormListReq) Reset ¶
func (x *FormListReq) Reset()
func (*FormListReq) String ¶
func (x *FormListReq) String() string
func (*FormListReq) Validate ¶
func (m *FormListReq) Validate() error
Validate checks the field values on FormListReq with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type FormListReqValidationError ¶
type FormListReqValidationError struct {
// contains filtered or unexported fields
}
FormListReqValidationError is the validation error returned by FormListReq.Validate if the designated constraints aren't met.
func (FormListReqValidationError) Cause ¶
func (e FormListReqValidationError) Cause() error
Cause function returns cause value.
func (FormListReqValidationError) Error ¶
func (e FormListReqValidationError) Error() string
Error satisfies the builtin error interface
func (FormListReqValidationError) ErrorName ¶
func (e FormListReqValidationError) ErrorName() string
ErrorName returns error name.
func (FormListReqValidationError) Field ¶
func (e FormListReqValidationError) Field() string
Field function returns field value.
func (FormListReqValidationError) Key ¶
func (e FormListReqValidationError) Key() bool
Key function returns key value.
func (FormListReqValidationError) Reason ¶
func (e FormListReqValidationError) Reason() string
Reason function returns reason value.
type FormListResp ¶
type FormListResp struct { List []*FormListResp_FormList `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*FormListResp) Descriptor
deprecated
func (*FormListResp) Descriptor() ([]byte, []int)
Deprecated: Use FormListResp.ProtoReflect.Descriptor instead.
func (*FormListResp) GetList ¶
func (x *FormListResp) GetList() []*FormListResp_FormList
func (*FormListResp) ProtoMessage ¶
func (*FormListResp) ProtoMessage()
func (*FormListResp) ProtoReflect ¶
func (x *FormListResp) ProtoReflect() protoreflect.Message
func (*FormListResp) Reset ¶
func (x *FormListResp) Reset()
func (*FormListResp) String ¶
func (x *FormListResp) String() string
func (*FormListResp) Validate ¶
func (m *FormListResp) Validate() error
Validate checks the field values on FormListResp with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type FormListRespValidationError ¶
type FormListRespValidationError struct {
// contains filtered or unexported fields
}
FormListRespValidationError is the validation error returned by FormListResp.Validate if the designated constraints aren't met.
func (FormListRespValidationError) Cause ¶
func (e FormListRespValidationError) Cause() error
Cause function returns cause value.
func (FormListRespValidationError) Error ¶
func (e FormListRespValidationError) Error() string
Error satisfies the builtin error interface
func (FormListRespValidationError) ErrorName ¶
func (e FormListRespValidationError) ErrorName() string
ErrorName returns error name.
func (FormListRespValidationError) Field ¶
func (e FormListRespValidationError) Field() string
Field function returns field value.
func (FormListRespValidationError) Key ¶
func (e FormListRespValidationError) Key() bool
Key function returns key value.
func (FormListRespValidationError) Reason ¶
func (e FormListRespValidationError) Reason() string
Reason function returns reason value.
type FormListResp_FormList ¶
type FormListResp_FormList struct { Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"` FormTitle string `protobuf:"bytes,2,opt,name=form_title,json=formTitle,proto3" json:"form_title,omitempty"` SubTitle string `protobuf:"bytes,3,opt,name=sub_title,json=subTitle,proto3" json:"sub_title,omitempty"` // contains filtered or unexported fields }
func (*FormListResp_FormList) Descriptor
deprecated
func (*FormListResp_FormList) Descriptor() ([]byte, []int)
Deprecated: Use FormListResp_FormList.ProtoReflect.Descriptor instead.
func (*FormListResp_FormList) GetFormTitle ¶
func (x *FormListResp_FormList) GetFormTitle() string
func (*FormListResp_FormList) GetSubTitle ¶
func (x *FormListResp_FormList) GetSubTitle() string
func (*FormListResp_FormList) GetUuid ¶
func (x *FormListResp_FormList) GetUuid() string
func (*FormListResp_FormList) ProtoMessage ¶
func (*FormListResp_FormList) ProtoMessage()
func (*FormListResp_FormList) ProtoReflect ¶
func (x *FormListResp_FormList) ProtoReflect() protoreflect.Message
func (*FormListResp_FormList) Reset ¶
func (x *FormListResp_FormList) Reset()
func (*FormListResp_FormList) String ¶
func (x *FormListResp_FormList) String() string
func (*FormListResp_FormList) Validate ¶
func (m *FormListResp_FormList) Validate() error
Validate checks the field values on FormListResp_FormList with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type FormListResp_FormListValidationError ¶
type FormListResp_FormListValidationError struct {
// contains filtered or unexported fields
}
FormListResp_FormListValidationError is the validation error returned by FormListResp_FormList.Validate if the designated constraints aren't met.
func (FormListResp_FormListValidationError) Cause ¶
func (e FormListResp_FormListValidationError) Cause() error
Cause function returns cause value.
func (FormListResp_FormListValidationError) Error ¶
func (e FormListResp_FormListValidationError) Error() string
Error satisfies the builtin error interface
func (FormListResp_FormListValidationError) ErrorName ¶
func (e FormListResp_FormListValidationError) ErrorName() string
ErrorName returns error name.
func (FormListResp_FormListValidationError) Field ¶
func (e FormListResp_FormListValidationError) Field() string
Field function returns field value.
func (FormListResp_FormListValidationError) Key ¶
func (e FormListResp_FormListValidationError) Key() bool
Key function returns key value.
func (FormListResp_FormListValidationError) Reason ¶
func (e FormListResp_FormListValidationError) Reason() string
Reason function returns reason value.
type FormSaveReq ¶
type FormSaveReq struct { Form *FormStruct `protobuf:"bytes,1,opt,name=form,proto3" json:"form,omitempty"` // contains filtered or unexported fields }
func (*FormSaveReq) Descriptor
deprecated
func (*FormSaveReq) Descriptor() ([]byte, []int)
Deprecated: Use FormSaveReq.ProtoReflect.Descriptor instead.
func (*FormSaveReq) GetForm ¶
func (x *FormSaveReq) GetForm() *FormStruct
func (*FormSaveReq) ProtoMessage ¶
func (*FormSaveReq) ProtoMessage()
func (*FormSaveReq) ProtoReflect ¶
func (x *FormSaveReq) ProtoReflect() protoreflect.Message
func (*FormSaveReq) Reset ¶
func (x *FormSaveReq) Reset()
func (*FormSaveReq) String ¶
func (x *FormSaveReq) String() string
func (*FormSaveReq) Validate ¶
func (m *FormSaveReq) Validate() error
Validate checks the field values on FormSaveReq with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type FormSaveReqValidationError ¶
type FormSaveReqValidationError struct {
// contains filtered or unexported fields
}
FormSaveReqValidationError is the validation error returned by FormSaveReq.Validate if the designated constraints aren't met.
func (FormSaveReqValidationError) Cause ¶
func (e FormSaveReqValidationError) Cause() error
Cause function returns cause value.
func (FormSaveReqValidationError) Error ¶
func (e FormSaveReqValidationError) Error() string
Error satisfies the builtin error interface
func (FormSaveReqValidationError) ErrorName ¶
func (e FormSaveReqValidationError) ErrorName() string
ErrorName returns error name.
func (FormSaveReqValidationError) Field ¶
func (e FormSaveReqValidationError) Field() string
Field function returns field value.
func (FormSaveReqValidationError) Key ¶
func (e FormSaveReqValidationError) Key() bool
Key function returns key value.
func (FormSaveReqValidationError) Reason ¶
func (e FormSaveReqValidationError) Reason() string
Reason function returns reason value.
type FormStruct ¶
type FormStruct struct { FormTitle string `protobuf:"bytes,1,opt,name=form_title,json=formTitle,proto3" json:"form_title,omitempty"` SubTitle string `protobuf:"bytes,2,opt,name=sub_title,json=subTitle,proto3" json:"sub_title,omitempty"` FormUuid string `protobuf:"bytes,3,opt,name=form_uuid,json=formUuid,proto3" json:"form_uuid,omitempty"` Items []*FormItems `protobuf:"bytes,4,rep,name=items,proto3" json:"items,omitempty"` // contains filtered or unexported fields }
表单结构 -----------
func (*FormStruct) Descriptor
deprecated
func (*FormStruct) Descriptor() ([]byte, []int)
Deprecated: Use FormStruct.ProtoReflect.Descriptor instead.
func (*FormStruct) GetFormTitle ¶
func (x *FormStruct) GetFormTitle() string
func (*FormStruct) GetFormUuid ¶
func (x *FormStruct) GetFormUuid() string
func (*FormStruct) GetItems ¶
func (x *FormStruct) GetItems() []*FormItems
func (*FormStruct) GetSubTitle ¶
func (x *FormStruct) GetSubTitle() string
func (*FormStruct) ProtoMessage ¶
func (*FormStruct) ProtoMessage()
func (*FormStruct) ProtoReflect ¶
func (x *FormStruct) ProtoReflect() protoreflect.Message
func (*FormStruct) Reset ¶
func (x *FormStruct) Reset()
func (*FormStruct) String ¶
func (x *FormStruct) String() string
func (*FormStruct) Validate ¶
func (m *FormStruct) Validate() error
Validate checks the field values on FormStruct with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type FormStructValidationError ¶
type FormStructValidationError struct {
// contains filtered or unexported fields
}
FormStructValidationError is the validation error returned by FormStruct.Validate if the designated constraints aren't met.
func (FormStructValidationError) Cause ¶
func (e FormStructValidationError) Cause() error
Cause function returns cause value.
func (FormStructValidationError) Error ¶
func (e FormStructValidationError) Error() string
Error satisfies the builtin error interface
func (FormStructValidationError) ErrorName ¶
func (e FormStructValidationError) ErrorName() string
ErrorName returns error name.
func (FormStructValidationError) Field ¶
func (e FormStructValidationError) Field() string
Field function returns field value.
func (FormStructValidationError) Key ¶
func (e FormStructValidationError) Key() bool
Key function returns key value.
func (FormStructValidationError) Reason ¶
func (e FormStructValidationError) Reason() string
Reason function returns reason value.
type Result ¶
type Result struct { Code int64 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Data *anypb.Any `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*Result) Descriptor
deprecated
func (*Result) GetMessage ¶
func (*Result) ProtoMessage ¶
func (*Result) ProtoMessage()
func (*Result) ProtoReflect ¶
func (x *Result) ProtoReflect() protoreflect.Message
type ResultValidationError ¶
type ResultValidationError struct {
// contains filtered or unexported fields
}
ResultValidationError is the validation error returned by Result.Validate if the designated constraints aren't met.
func (ResultValidationError) Cause ¶
func (e ResultValidationError) Cause() error
Cause function returns cause value.
func (ResultValidationError) Error ¶
func (e ResultValidationError) Error() string
Error satisfies the builtin error interface
func (ResultValidationError) ErrorName ¶
func (e ResultValidationError) ErrorName() string
ErrorName returns error name.
func (ResultValidationError) Field ¶
func (e ResultValidationError) Field() string
Field function returns field value.
func (ResultValidationError) Key ¶
func (e ResultValidationError) Key() bool
Key function returns key value.
func (ResultValidationError) Reason ¶
func (e ResultValidationError) Reason() string
Reason function returns reason value.
type UnimplementedBoxServer ¶
type UnimplementedBoxServer struct { }
UnimplementedBoxServer must be embedded to have forward compatible implementations.
func (UnimplementedBoxServer) FormAnswerSave ¶
func (UnimplementedBoxServer) FormAnswerSave(context.Context, *FormSaveReq) (*emptypb.Empty, error)
func (UnimplementedBoxServer) FormGet ¶
func (UnimplementedBoxServer) FormGet(context.Context, *FormGetReq) (*FormGetResp, error)
func (UnimplementedBoxServer) FormList ¶
func (UnimplementedBoxServer) FormList(context.Context, *FormListReq) (*FormListResp, error)
func (UnimplementedBoxServer) FormListQuestionType ¶
func (UnimplementedBoxServer) FormListQuestionType(context.Context, *emptypb.Empty) (*FormListQuestionTypeResp, error)
func (UnimplementedBoxServer) FormSave ¶
func (UnimplementedBoxServer) FormSave(context.Context, *FormSaveReq) (*emptypb.Empty, error)
type UnsafeBoxServer ¶
type UnsafeBoxServer interface {
// contains filtered or unexported methods
}
UnsafeBoxServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BoxServer will result in compilation errors.
type UserAnswer ¶
type UserAnswer struct { Other string `protobuf:"bytes,1,opt,name=other,proto3" json:"other,omitempty"` Select string `protobuf:"bytes,2,opt,name=select,proto3" json:"select,omitempty"` ArrValue []string `protobuf:"bytes,3,rep,name=arr_value,json=arrValue,proto3" json:"arr_value,omitempty"` // contains filtered or unexported fields }
func (*UserAnswer) Descriptor
deprecated
func (*UserAnswer) Descriptor() ([]byte, []int)
Deprecated: Use UserAnswer.ProtoReflect.Descriptor instead.
func (*UserAnswer) GetArrValue ¶
func (x *UserAnswer) GetArrValue() []string
func (*UserAnswer) GetOther ¶
func (x *UserAnswer) GetOther() string
func (*UserAnswer) GetSelect ¶
func (x *UserAnswer) GetSelect() string
func (*UserAnswer) ProtoMessage ¶
func (*UserAnswer) ProtoMessage()
func (*UserAnswer) ProtoReflect ¶
func (x *UserAnswer) ProtoReflect() protoreflect.Message
func (*UserAnswer) Reset ¶
func (x *UserAnswer) Reset()
func (*UserAnswer) String ¶
func (x *UserAnswer) String() string
func (*UserAnswer) Validate ¶
func (m *UserAnswer) Validate() error
Validate checks the field values on UserAnswer with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type UserAnswerValidationError ¶
type UserAnswerValidationError struct {
// contains filtered or unexported fields
}
UserAnswerValidationError is the validation error returned by UserAnswer.Validate if the designated constraints aren't met.
func (UserAnswerValidationError) Cause ¶
func (e UserAnswerValidationError) Cause() error
Cause function returns cause value.
func (UserAnswerValidationError) Error ¶
func (e UserAnswerValidationError) Error() string
Error satisfies the builtin error interface
func (UserAnswerValidationError) ErrorName ¶
func (e UserAnswerValidationError) ErrorName() string
ErrorName returns error name.
func (UserAnswerValidationError) Field ¶
func (e UserAnswerValidationError) Field() string
Field function returns field value.
func (UserAnswerValidationError) Key ¶
func (e UserAnswerValidationError) Key() bool
Key function returns key value.
func (UserAnswerValidationError) Reason ¶
func (e UserAnswerValidationError) Reason() string
Reason function returns reason value.