Documentation ¶
Index ¶
- Variables
- func RegisterTestingServer(s grpc.ServiceRegistrar, srv TestingServer)
- type Enum1
- type GrpcTestingServer
- type NoOneofs
- type NoOneofsValidationError
- type NotAllReachable
- func (*NotAllReachable) Descriptor() ([]byte, []int)deprecated
- func (x *NotAllReachable) GetM1() int32
- func (x *NotAllReachable) GetM2() int32
- func (x *NotAllReachable) GetM3() int32
- func (m *NotAllReachable) GetMessage() isNotAllReachable_Message
- func (*NotAllReachable) ProtoMessage()
- func (x *NotAllReachable) ProtoReflect() protoreflect.Message
- func (x *NotAllReachable) Reset()
- func (x *NotAllReachable) String() string
- func (m *NotAllReachable) Validate() error
- type NotAllReachableValidationError
- func (e NotAllReachableValidationError) Cause() error
- func (e NotAllReachableValidationError) Error() string
- func (e NotAllReachableValidationError) ErrorName() string
- func (e NotAllReachableValidationError) Field() string
- func (e NotAllReachableValidationError) Key() bool
- func (e NotAllReachableValidationError) Reason() string
- type NotAllReachable_M1
- type NotAllReachable_M2
- type NotAllReachable_M3
- type OutOfOneof
- func (*OutOfOneof) Descriptor() ([]byte, []int)deprecated
- func (x *OutOfOneof) GetM1() int32
- func (x *OutOfOneof) GetM2() int32
- func (m *OutOfOneof) GetMessage() isOutOfOneof_Message
- func (x *OutOfOneof) GetX() int32
- func (*OutOfOneof) ProtoMessage()
- func (x *OutOfOneof) ProtoReflect() protoreflect.Message
- func (x *OutOfOneof) Reset()
- func (x *OutOfOneof) String() string
- func (m *OutOfOneof) Validate() error
- type OutOfOneofValidationError
- type OutOfOneof_M1
- type OutOfOneof_M2
- type Request
- type RequestValidationError
- type Response
- func (*Response) Descriptor() ([]byte, []int)deprecated
- func (x *Response) GetData() *Response_Data
- func (x *Response) GetLast() *Response_Last
- func (m *Response) GetMessage() isResponse_Message
- func (x *Response) GetScalar() int64
- func (x *Response) GetX1() Enum1
- func (*Response) ProtoMessage()
- func (x *Response) ProtoReflect() protoreflect.Message
- func (x *Response) Reset()
- func (x *Response) String() string
- func (m *Response) Validate() error
- type ResponseValidationError
- type Response_Data
- func (*Response_Data) Descriptor() ([]byte, []int)deprecated
- func (x *Response_Data) GetData() []byte
- func (*Response_Data) ProtoMessage()
- func (x *Response_Data) ProtoReflect() protoreflect.Message
- func (x *Response_Data) Reset()
- func (x *Response_Data) String() string
- func (m *Response_Data) Validate() error
- type Response_DataValidationError
- func (e Response_DataValidationError) Cause() error
- func (e Response_DataValidationError) Error() string
- func (e Response_DataValidationError) ErrorName() string
- func (e Response_DataValidationError) Field() string
- func (e Response_DataValidationError) Key() bool
- func (e Response_DataValidationError) Reason() string
- type Response_Data_
- type Response_Last
- type Response_LastValidationError
- func (e Response_LastValidationError) Cause() error
- func (e Response_LastValidationError) Error() string
- func (e Response_LastValidationError) ErrorName() string
- func (e Response_LastValidationError) Field() string
- func (e Response_LastValidationError) Key() bool
- func (e Response_LastValidationError) Reason() string
- type Response_Last_
- type Response_Scalar
- type Response_X1
- type TestingClient
- type TestingServer
- type Testing_StreamingRequestResponseClient
- type Testing_StreamingRequestResponseServer
- type TwoOneofs
- func (*TwoOneofs) Descriptor() ([]byte, []int)deprecated
- func (x *TwoOneofs) GetM11() int32
- func (x *TwoOneofs) GetM12() int32
- func (x *TwoOneofs) GetM21() int32
- func (x *TwoOneofs) GetM22() int32
- func (m *TwoOneofs) GetMessage1() isTwoOneofs_Message1
- func (m *TwoOneofs) GetMessage2() isTwoOneofs_Message2
- func (*TwoOneofs) ProtoMessage()
- func (x *TwoOneofs) ProtoReflect() protoreflect.Message
- func (x *TwoOneofs) Reset()
- func (x *TwoOneofs) String() string
- func (m *TwoOneofs) Validate() error
- type TwoOneofsValidationError
- type TwoOneofs_M11
- type TwoOneofs_M12
- type TwoOneofs_M21
- type TwoOneofs_M22
- type TwoValidOneofs
- func (*TwoValidOneofs) Descriptor() ([]byte, []int)deprecated
- func (x *TwoValidOneofs) GetM11() int32
- func (x *TwoValidOneofs) GetM12() int32
- func (x *TwoValidOneofs) GetM21() int32
- func (x *TwoValidOneofs) GetM22() int32
- func (m *TwoValidOneofs) GetMessage1() isTwoValidOneofs_Message1
- func (m *TwoValidOneofs) GetMessage2() isTwoValidOneofs_Message2
- func (*TwoValidOneofs) ProtoMessage()
- func (x *TwoValidOneofs) ProtoReflect() protoreflect.Message
- func (x *TwoValidOneofs) Reset()
- func (x *TwoValidOneofs) String() string
- func (m *TwoValidOneofs) Validate() error
- type TwoValidOneofsValidationError
- func (e TwoValidOneofsValidationError) Cause() error
- func (e TwoValidOneofsValidationError) Error() string
- func (e TwoValidOneofsValidationError) ErrorName() string
- func (e TwoValidOneofsValidationError) Field() string
- func (e TwoValidOneofsValidationError) Key() bool
- func (e TwoValidOneofsValidationError) Reason() string
- type TwoValidOneofs_M11
- type TwoValidOneofs_M12
- type TwoValidOneofs_M21
- type TwoValidOneofs_M22
- type UnimplementedTestingServer
- type UnsafeTestingServer
Constants ¶
This section is empty.
Variables ¶
var ( Enum1_name = map[int32]string{ 0: "v1", 1: "v2", } Enum1_value = map[string]int32{ "v1": 0, "v2": 1, } )
Enum value maps for Enum1.
var File_internal_tool_grpctool_test_test_proto protoreflect.FileDescriptor
var Testing_ServiceDesc = grpc.ServiceDesc{ ServiceName: "gitlab.agent.grpctool.test.Testing", HandlerType: (*TestingServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "RequestResponse", Handler: _Testing_RequestResponse_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "StreamingRequestResponse", Handler: _Testing_StreamingRequestResponse_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "internal/tool/grpctool/test/test.proto", }
Testing_ServiceDesc is the grpc.ServiceDesc for Testing service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterTestingServer ¶
func RegisterTestingServer(s grpc.ServiceRegistrar, srv TestingServer)
Types ¶
type Enum1 ¶
type Enum1 int32
func (Enum1) Descriptor ¶
func (Enum1) Descriptor() protoreflect.EnumDescriptor
func (Enum1) EnumDescriptor
deprecated
func (Enum1) Number ¶
func (x Enum1) Number() protoreflect.EnumNumber
func (Enum1) Type ¶
func (Enum1) Type() protoreflect.EnumType
type GrpcTestingServer ¶ added in v14.1.0
type GrpcTestingServer struct { UnimplementedTestingServer UnaryFunc func(context.Context, *Request) (*Response, error) StreamingFunc func(Testing_StreamingRequestResponseServer) error }
func (*GrpcTestingServer) RequestResponse ¶ added in v14.1.0
func (*GrpcTestingServer) StreamingRequestResponse ¶ added in v14.1.0
func (s *GrpcTestingServer) StreamingRequestResponse(server Testing_StreamingRequestResponseServer) error
type NoOneofs ¶
type NoOneofs struct {
// contains filtered or unexported fields
}
func (*NoOneofs) Descriptor
deprecated
func (*NoOneofs) ProtoMessage ¶
func (*NoOneofs) ProtoMessage()
func (*NoOneofs) ProtoReflect ¶
func (x *NoOneofs) ProtoReflect() protoreflect.Message
type NoOneofsValidationError ¶
type NoOneofsValidationError struct {
// contains filtered or unexported fields
}
NoOneofsValidationError is the validation error returned by NoOneofs.Validate if the designated constraints aren't met.
func (NoOneofsValidationError) Cause ¶
func (e NoOneofsValidationError) Cause() error
Cause function returns cause value.
func (NoOneofsValidationError) Error ¶
func (e NoOneofsValidationError) Error() string
Error satisfies the builtin error interface
func (NoOneofsValidationError) ErrorName ¶
func (e NoOneofsValidationError) ErrorName() string
ErrorName returns error name.
func (NoOneofsValidationError) Field ¶
func (e NoOneofsValidationError) Field() string
Field function returns field value.
func (NoOneofsValidationError) Key ¶
func (e NoOneofsValidationError) Key() bool
Key function returns key value.
func (NoOneofsValidationError) Reason ¶
func (e NoOneofsValidationError) Reason() string
Reason function returns reason value.
type NotAllReachable ¶
type NotAllReachable struct { // Types that are assignable to Message: // *NotAllReachable_M1 // *NotAllReachable_M2 // *NotAllReachable_M3 Message isNotAllReachable_Message `protobuf_oneof:"message"` // contains filtered or unexported fields }
func (*NotAllReachable) Descriptor
deprecated
func (*NotAllReachable) Descriptor() ([]byte, []int)
Deprecated: Use NotAllReachable.ProtoReflect.Descriptor instead.
func (*NotAllReachable) GetM1 ¶
func (x *NotAllReachable) GetM1() int32
func (*NotAllReachable) GetM2 ¶
func (x *NotAllReachable) GetM2() int32
func (*NotAllReachable) GetM3 ¶
func (x *NotAllReachable) GetM3() int32
func (*NotAllReachable) GetMessage ¶
func (m *NotAllReachable) GetMessage() isNotAllReachable_Message
func (*NotAllReachable) ProtoMessage ¶
func (*NotAllReachable) ProtoMessage()
func (*NotAllReachable) ProtoReflect ¶
func (x *NotAllReachable) ProtoReflect() protoreflect.Message
func (*NotAllReachable) Reset ¶
func (x *NotAllReachable) Reset()
func (*NotAllReachable) String ¶
func (x *NotAllReachable) String() string
func (*NotAllReachable) Validate ¶
func (m *NotAllReachable) Validate() error
Validate checks the field values on NotAllReachable with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type NotAllReachableValidationError ¶
type NotAllReachableValidationError struct {
// contains filtered or unexported fields
}
NotAllReachableValidationError is the validation error returned by NotAllReachable.Validate if the designated constraints aren't met.
func (NotAllReachableValidationError) Cause ¶
func (e NotAllReachableValidationError) Cause() error
Cause function returns cause value.
func (NotAllReachableValidationError) Error ¶
func (e NotAllReachableValidationError) Error() string
Error satisfies the builtin error interface
func (NotAllReachableValidationError) ErrorName ¶
func (e NotAllReachableValidationError) ErrorName() string
ErrorName returns error name.
func (NotAllReachableValidationError) Field ¶
func (e NotAllReachableValidationError) Field() string
Field function returns field value.
func (NotAllReachableValidationError) Key ¶
func (e NotAllReachableValidationError) Key() bool
Key function returns key value.
func (NotAllReachableValidationError) Reason ¶
func (e NotAllReachableValidationError) Reason() string
Reason function returns reason value.
type NotAllReachable_M1 ¶
type NotAllReachable_M1 struct {
M1 int32 `protobuf:"varint,1,opt,name=m1,proto3,oneof"`
}
type NotAllReachable_M2 ¶
type NotAllReachable_M2 struct {
M2 int32 `protobuf:"varint,2,opt,name=m2,proto3,oneof"`
}
type NotAllReachable_M3 ¶
type NotAllReachable_M3 struct {
M3 int32 `protobuf:"varint,3,opt,name=m3,proto3,oneof"`
}
type OutOfOneof ¶
type OutOfOneof struct { X int32 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"` // Types that are assignable to Message: // *OutOfOneof_M1 // *OutOfOneof_M2 Message isOutOfOneof_Message `protobuf_oneof:"message"` // contains filtered or unexported fields }
func (*OutOfOneof) Descriptor
deprecated
func (*OutOfOneof) Descriptor() ([]byte, []int)
Deprecated: Use OutOfOneof.ProtoReflect.Descriptor instead.
func (*OutOfOneof) GetM1 ¶
func (x *OutOfOneof) GetM1() int32
func (*OutOfOneof) GetM2 ¶
func (x *OutOfOneof) GetM2() int32
func (*OutOfOneof) GetMessage ¶
func (m *OutOfOneof) GetMessage() isOutOfOneof_Message
func (*OutOfOneof) GetX ¶
func (x *OutOfOneof) GetX() int32
func (*OutOfOneof) ProtoMessage ¶
func (*OutOfOneof) ProtoMessage()
func (*OutOfOneof) ProtoReflect ¶
func (x *OutOfOneof) ProtoReflect() protoreflect.Message
func (*OutOfOneof) Reset ¶
func (x *OutOfOneof) Reset()
func (*OutOfOneof) String ¶
func (x *OutOfOneof) String() string
func (*OutOfOneof) Validate ¶
func (m *OutOfOneof) Validate() error
Validate checks the field values on OutOfOneof with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type OutOfOneofValidationError ¶
type OutOfOneofValidationError struct {
// contains filtered or unexported fields
}
OutOfOneofValidationError is the validation error returned by OutOfOneof.Validate if the designated constraints aren't met.
func (OutOfOneofValidationError) Cause ¶
func (e OutOfOneofValidationError) Cause() error
Cause function returns cause value.
func (OutOfOneofValidationError) Error ¶
func (e OutOfOneofValidationError) Error() string
Error satisfies the builtin error interface
func (OutOfOneofValidationError) ErrorName ¶
func (e OutOfOneofValidationError) ErrorName() string
ErrorName returns error name.
func (OutOfOneofValidationError) Field ¶
func (e OutOfOneofValidationError) Field() string
Field function returns field value.
func (OutOfOneofValidationError) Key ¶
func (e OutOfOneofValidationError) Key() bool
Key function returns key value.
func (OutOfOneofValidationError) Reason ¶
func (e OutOfOneofValidationError) Reason() string
Reason function returns reason value.
type OutOfOneof_M1 ¶
type OutOfOneof_M1 struct {
M1 int32 `protobuf:"varint,2,opt,name=m1,proto3,oneof"`
}
type OutOfOneof_M2 ¶
type OutOfOneof_M2 struct {
M2 int32 `protobuf:"varint,3,opt,name=m2,proto3,oneof"`
}
type Request ¶
type Request struct { S1 string `protobuf:"bytes,1,opt,name=s1,proto3" json:"s1,omitempty"` // contains filtered or unexported fields }
func (*Request) Descriptor
deprecated
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
type RequestValidationError ¶
type RequestValidationError struct {
// contains filtered or unexported fields
}
RequestValidationError is the validation error returned by Request.Validate if the designated constraints aren't met.
func (RequestValidationError) Cause ¶
func (e RequestValidationError) Cause() error
Cause function returns cause value.
func (RequestValidationError) Error ¶
func (e RequestValidationError) Error() string
Error satisfies the builtin error interface
func (RequestValidationError) ErrorName ¶
func (e RequestValidationError) ErrorName() string
ErrorName returns error name.
func (RequestValidationError) Field ¶
func (e RequestValidationError) Field() string
Field function returns field value.
func (RequestValidationError) Key ¶
func (e RequestValidationError) Key() bool
Key function returns key value.
func (RequestValidationError) Reason ¶
func (e RequestValidationError) Reason() string
Reason function returns reason value.
type Response ¶
type Response struct { // Types that are assignable to Message: // *Response_Scalar // *Response_X1 // *Response_Data_ // *Response_Last_ Message isResponse_Message `protobuf_oneof:"message"` // contains filtered or unexported fields }
func (*Response) Descriptor
deprecated
func (*Response) GetData ¶
func (x *Response) GetData() *Response_Data
func (*Response) GetLast ¶
func (x *Response) GetLast() *Response_Last
func (*Response) GetMessage ¶
func (m *Response) GetMessage() isResponse_Message
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type ResponseValidationError ¶
type ResponseValidationError struct {
// contains filtered or unexported fields
}
ResponseValidationError is the validation error returned by Response.Validate if the designated constraints aren't met.
func (ResponseValidationError) Cause ¶
func (e ResponseValidationError) Cause() error
Cause function returns cause value.
func (ResponseValidationError) Error ¶
func (e ResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ResponseValidationError) ErrorName ¶
func (e ResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ResponseValidationError) Field ¶
func (e ResponseValidationError) Field() string
Field function returns field value.
func (ResponseValidationError) Key ¶
func (e ResponseValidationError) Key() bool
Key function returns key value.
func (ResponseValidationError) Reason ¶
func (e ResponseValidationError) Reason() string
Reason function returns reason value.
type Response_Data ¶
type Response_Data struct { Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
func (*Response_Data) Descriptor
deprecated
func (*Response_Data) Descriptor() ([]byte, []int)
Deprecated: Use Response_Data.ProtoReflect.Descriptor instead.
func (*Response_Data) GetData ¶
func (x *Response_Data) GetData() []byte
func (*Response_Data) ProtoMessage ¶
func (*Response_Data) ProtoMessage()
func (*Response_Data) ProtoReflect ¶
func (x *Response_Data) ProtoReflect() protoreflect.Message
func (*Response_Data) Reset ¶
func (x *Response_Data) Reset()
func (*Response_Data) String ¶
func (x *Response_Data) String() string
func (*Response_Data) Validate ¶
func (m *Response_Data) Validate() error
Validate checks the field values on Response_Data with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type Response_DataValidationError ¶
type Response_DataValidationError struct {
// contains filtered or unexported fields
}
Response_DataValidationError is the validation error returned by Response_Data.Validate if the designated constraints aren't met.
func (Response_DataValidationError) Cause ¶
func (e Response_DataValidationError) Cause() error
Cause function returns cause value.
func (Response_DataValidationError) Error ¶
func (e Response_DataValidationError) Error() string
Error satisfies the builtin error interface
func (Response_DataValidationError) ErrorName ¶
func (e Response_DataValidationError) ErrorName() string
ErrorName returns error name.
func (Response_DataValidationError) Field ¶
func (e Response_DataValidationError) Field() string
Field function returns field value.
func (Response_DataValidationError) Key ¶
func (e Response_DataValidationError) Key() bool
Key function returns key value.
func (Response_DataValidationError) Reason ¶
func (e Response_DataValidationError) Reason() string
Reason function returns reason value.
type Response_Data_ ¶
type Response_Data_ struct {
Data *Response_Data `protobuf:"bytes,3,opt,name=data,proto3,oneof"`
}
type Response_Last ¶
type Response_Last struct {
// contains filtered or unexported fields
}
func (*Response_Last) Descriptor
deprecated
func (*Response_Last) Descriptor() ([]byte, []int)
Deprecated: Use Response_Last.ProtoReflect.Descriptor instead.
func (*Response_Last) ProtoMessage ¶
func (*Response_Last) ProtoMessage()
func (*Response_Last) ProtoReflect ¶
func (x *Response_Last) ProtoReflect() protoreflect.Message
func (*Response_Last) Reset ¶
func (x *Response_Last) Reset()
func (*Response_Last) String ¶
func (x *Response_Last) String() string
func (*Response_Last) Validate ¶
func (m *Response_Last) Validate() error
Validate checks the field values on Response_Last with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type Response_LastValidationError ¶
type Response_LastValidationError struct {
// contains filtered or unexported fields
}
Response_LastValidationError is the validation error returned by Response_Last.Validate if the designated constraints aren't met.
func (Response_LastValidationError) Cause ¶
func (e Response_LastValidationError) Cause() error
Cause function returns cause value.
func (Response_LastValidationError) Error ¶
func (e Response_LastValidationError) Error() string
Error satisfies the builtin error interface
func (Response_LastValidationError) ErrorName ¶
func (e Response_LastValidationError) ErrorName() string
ErrorName returns error name.
func (Response_LastValidationError) Field ¶
func (e Response_LastValidationError) Field() string
Field function returns field value.
func (Response_LastValidationError) Key ¶
func (e Response_LastValidationError) Key() bool
Key function returns key value.
func (Response_LastValidationError) Reason ¶
func (e Response_LastValidationError) Reason() string
Reason function returns reason value.
type Response_Last_ ¶
type Response_Last_ struct {
Last *Response_Last `protobuf:"bytes,4,opt,name=last,proto3,oneof"`
}
type Response_Scalar ¶
type Response_Scalar struct {
Scalar int64 `protobuf:"varint,1,opt,name=scalar,proto3,oneof"`
}
type Response_X1 ¶
type Response_X1 struct {
X1 Enum1 `protobuf:"varint,2,opt,name=x1,proto3,enum=gitlab.agent.grpctool.test.Enum1,oneof"`
}
type TestingClient ¶
type TestingClient interface { RequestResponse(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) StreamingRequestResponse(ctx context.Context, opts ...grpc.CallOption) (Testing_StreamingRequestResponseClient, error) }
TestingClient is the client API for Testing 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 NewTestingClient ¶
func NewTestingClient(cc grpc.ClientConnInterface) TestingClient
type TestingServer ¶
type TestingServer interface { RequestResponse(context.Context, *Request) (*Response, error) StreamingRequestResponse(Testing_StreamingRequestResponseServer) error // contains filtered or unexported methods }
TestingServer is the server API for Testing service. All implementations must embed UnimplementedTestingServer for forward compatibility
type TwoOneofs ¶
type TwoOneofs struct { // Types that are assignable to Message1: // *TwoOneofs_M11 // *TwoOneofs_M12 Message1 isTwoOneofs_Message1 `protobuf_oneof:"message1"` // Types that are assignable to Message2: // *TwoOneofs_M21 // *TwoOneofs_M22 Message2 isTwoOneofs_Message2 `protobuf_oneof:"message2"` // contains filtered or unexported fields }
func (*TwoOneofs) Descriptor
deprecated
func (*TwoOneofs) GetMessage1 ¶
func (m *TwoOneofs) GetMessage1() isTwoOneofs_Message1
func (*TwoOneofs) GetMessage2 ¶
func (m *TwoOneofs) GetMessage2() isTwoOneofs_Message2
func (*TwoOneofs) ProtoMessage ¶
func (*TwoOneofs) ProtoMessage()
func (*TwoOneofs) ProtoReflect ¶
func (x *TwoOneofs) ProtoReflect() protoreflect.Message
type TwoOneofsValidationError ¶
type TwoOneofsValidationError struct {
// contains filtered or unexported fields
}
TwoOneofsValidationError is the validation error returned by TwoOneofs.Validate if the designated constraints aren't met.
func (TwoOneofsValidationError) Cause ¶
func (e TwoOneofsValidationError) Cause() error
Cause function returns cause value.
func (TwoOneofsValidationError) Error ¶
func (e TwoOneofsValidationError) Error() string
Error satisfies the builtin error interface
func (TwoOneofsValidationError) ErrorName ¶
func (e TwoOneofsValidationError) ErrorName() string
ErrorName returns error name.
func (TwoOneofsValidationError) Field ¶
func (e TwoOneofsValidationError) Field() string
Field function returns field value.
func (TwoOneofsValidationError) Key ¶
func (e TwoOneofsValidationError) Key() bool
Key function returns key value.
func (TwoOneofsValidationError) Reason ¶
func (e TwoOneofsValidationError) Reason() string
Reason function returns reason value.
type TwoOneofs_M11 ¶
type TwoOneofs_M11 struct {
M11 int32 `protobuf:"varint,1,opt,name=m11,proto3,oneof"`
}
type TwoOneofs_M12 ¶
type TwoOneofs_M12 struct {
M12 int32 `protobuf:"varint,2,opt,name=m12,proto3,oneof"`
}
type TwoOneofs_M21 ¶
type TwoOneofs_M21 struct {
M21 int32 `protobuf:"varint,3,opt,name=m21,proto3,oneof"`
}
type TwoOneofs_M22 ¶
type TwoOneofs_M22 struct {
M22 int32 `protobuf:"varint,4,opt,name=m22,proto3,oneof"`
}
type TwoValidOneofs ¶
type TwoValidOneofs struct { // Types that are assignable to Message1: // *TwoValidOneofs_M11 // *TwoValidOneofs_M12 Message1 isTwoValidOneofs_Message1 `protobuf_oneof:"message1"` // Types that are assignable to Message2: // *TwoValidOneofs_M21 // *TwoValidOneofs_M22 Message2 isTwoValidOneofs_Message2 `protobuf_oneof:"message2"` // contains filtered or unexported fields }
func (*TwoValidOneofs) Descriptor
deprecated
func (*TwoValidOneofs) Descriptor() ([]byte, []int)
Deprecated: Use TwoValidOneofs.ProtoReflect.Descriptor instead.
func (*TwoValidOneofs) GetM11 ¶
func (x *TwoValidOneofs) GetM11() int32
func (*TwoValidOneofs) GetM12 ¶
func (x *TwoValidOneofs) GetM12() int32
func (*TwoValidOneofs) GetM21 ¶
func (x *TwoValidOneofs) GetM21() int32
func (*TwoValidOneofs) GetM22 ¶
func (x *TwoValidOneofs) GetM22() int32
func (*TwoValidOneofs) GetMessage1 ¶
func (m *TwoValidOneofs) GetMessage1() isTwoValidOneofs_Message1
func (*TwoValidOneofs) GetMessage2 ¶
func (m *TwoValidOneofs) GetMessage2() isTwoValidOneofs_Message2
func (*TwoValidOneofs) ProtoMessage ¶
func (*TwoValidOneofs) ProtoMessage()
func (*TwoValidOneofs) ProtoReflect ¶
func (x *TwoValidOneofs) ProtoReflect() protoreflect.Message
func (*TwoValidOneofs) Reset ¶
func (x *TwoValidOneofs) Reset()
func (*TwoValidOneofs) String ¶
func (x *TwoValidOneofs) String() string
func (*TwoValidOneofs) Validate ¶
func (m *TwoValidOneofs) Validate() error
Validate checks the field values on TwoValidOneofs with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type TwoValidOneofsValidationError ¶
type TwoValidOneofsValidationError struct {
// contains filtered or unexported fields
}
TwoValidOneofsValidationError is the validation error returned by TwoValidOneofs.Validate if the designated constraints aren't met.
func (TwoValidOneofsValidationError) Cause ¶
func (e TwoValidOneofsValidationError) Cause() error
Cause function returns cause value.
func (TwoValidOneofsValidationError) Error ¶
func (e TwoValidOneofsValidationError) Error() string
Error satisfies the builtin error interface
func (TwoValidOneofsValidationError) ErrorName ¶
func (e TwoValidOneofsValidationError) ErrorName() string
ErrorName returns error name.
func (TwoValidOneofsValidationError) Field ¶
func (e TwoValidOneofsValidationError) Field() string
Field function returns field value.
func (TwoValidOneofsValidationError) Key ¶
func (e TwoValidOneofsValidationError) Key() bool
Key function returns key value.
func (TwoValidOneofsValidationError) Reason ¶
func (e TwoValidOneofsValidationError) Reason() string
Reason function returns reason value.
type TwoValidOneofs_M11 ¶
type TwoValidOneofs_M11 struct {
M11 int32 `protobuf:"varint,1,opt,name=m11,proto3,oneof"`
}
type TwoValidOneofs_M12 ¶
type TwoValidOneofs_M12 struct {
M12 int32 `protobuf:"varint,2,opt,name=m12,proto3,oneof"`
}
type TwoValidOneofs_M21 ¶
type TwoValidOneofs_M21 struct {
M21 int32 `protobuf:"varint,3,opt,name=m21,proto3,oneof"`
}
type TwoValidOneofs_M22 ¶
type TwoValidOneofs_M22 struct {
M22 int32 `protobuf:"varint,4,opt,name=m22,proto3,oneof"`
}
type UnimplementedTestingServer ¶
type UnimplementedTestingServer struct { }
UnimplementedTestingServer must be embedded to have forward compatible implementations.
func (UnimplementedTestingServer) RequestResponse ¶
func (UnimplementedTestingServer) StreamingRequestResponse ¶
func (UnimplementedTestingServer) StreamingRequestResponse(Testing_StreamingRequestResponseServer) error
type UnsafeTestingServer ¶
type UnsafeTestingServer interface {
// contains filtered or unexported methods
}
UnsafeTestingServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TestingServer will result in compilation errors.