test

package
v15.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Enum1_name = map[int32]string{
		0: "v1",
		1: "v2",
	}
	Enum1_value = map[string]int32{
		"v1": 0,
		"v2": 1,
	}
)

Enum value maps for Enum1.

View Source
var File_internal_tool_grpctool_test_test_proto protoreflect.FileDescriptor
View Source
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
const (
	Enum1_v1 Enum1 = 0
	Enum1_v2 Enum1 = 1
)

func (Enum1) Descriptor

func (Enum1) Descriptor() protoreflect.EnumDescriptor

func (Enum1) Enum

func (x Enum1) Enum() *Enum1

func (Enum1) EnumDescriptor deprecated

func (Enum1) EnumDescriptor() ([]byte, []int)

Deprecated: Use Enum1.Descriptor instead.

func (Enum1) Number

func (x Enum1) Number() protoreflect.EnumNumber

func (Enum1) String

func (x Enum1) String() string

func (Enum1) Type

func (Enum1) Type() protoreflect.EnumType

type GrpcTestingServer

type GrpcTestingServer struct {
	UnimplementedTestingServer
	UnaryFunc     func(context.Context, *Request) (*Response, error)
	StreamingFunc func(Testing_StreamingRequestResponseServer) error
}

func (*GrpcTestingServer) RequestResponse

func (s *GrpcTestingServer) RequestResponse(ctx context.Context, request *Request) (*Response, error)

func (*GrpcTestingServer) StreamingRequestResponse

func (s *GrpcTestingServer) StreamingRequestResponse(server Testing_StreamingRequestResponseServer) error

type NoOneofs

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

func (*NoOneofs) Descriptor deprecated

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

Deprecated: Use NoOneofs.ProtoReflect.Descriptor instead.

func (*NoOneofs) ProtoMessage

func (*NoOneofs) ProtoMessage()

func (*NoOneofs) ProtoReflect

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

func (*NoOneofs) Reset

func (x *NoOneofs) Reset()

func (*NoOneofs) String

func (x *NoOneofs) String() string

func (*NoOneofs) Validate

func (m *NoOneofs) Validate() error

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

func (m *NoOneofs) ValidateAll() error

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

type NoOneofsMultiError

type NoOneofsMultiError []error

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

func (NoOneofsMultiError) AllErrors

func (m NoOneofsMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (NoOneofsMultiError) Error

func (m NoOneofsMultiError) Error() string

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

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, the first error encountered is returned, or nil if there are no violations.

func (*NotAllReachable) ValidateAll

func (m *NotAllReachable) ValidateAll() error

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

type NotAllReachableMultiError

type NotAllReachableMultiError []error

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

func (NotAllReachableMultiError) AllErrors

func (m NotAllReachableMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (NotAllReachableMultiError) Error

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

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

Cause function returns cause value.

func (NotAllReachableValidationError) Error

Error satisfies the builtin error interface

func (NotAllReachableValidationError) ErrorName

func (e NotAllReachableValidationError) ErrorName() string

ErrorName returns error name.

func (NotAllReachableValidationError) Field

Field function returns field value.

func (NotAllReachableValidationError) Key

Key function returns key value.

func (NotAllReachableValidationError) Reason

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, the first error encountered is returned, or nil if there are no violations.

func (*OutOfOneof) ValidateAll

func (m *OutOfOneof) ValidateAll() error

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

type OutOfOneofMultiError

type OutOfOneofMultiError []error

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

func (OutOfOneofMultiError) AllErrors

func (m OutOfOneofMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (OutOfOneofMultiError) Error

func (m OutOfOneofMultiError) Error() string

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

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

Error satisfies the builtin error interface

func (OutOfOneofValidationError) ErrorName

func (e OutOfOneofValidationError) ErrorName() string

ErrorName returns error name.

func (OutOfOneofValidationError) Field

Field function returns field value.

func (OutOfOneofValidationError) Key

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

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetS1

func (x *Request) GetS1() string

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

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

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

func (*Request) Validate

func (m *Request) Validate() error

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

func (m *Request) ValidateAll() error

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

type RequestMultiError

type RequestMultiError []error

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

func (RequestMultiError) AllErrors

func (m RequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RequestMultiError) Error

func (m RequestMultiError) Error() string

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

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

Deprecated: Use Response.ProtoReflect.Descriptor instead.

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

func (x *Response) GetScalar() int64

func (*Response) GetX1

func (x *Response) GetX1() Enum1

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

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

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

func (*Response) Validate

func (m *Response) Validate() error

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

func (m *Response) ValidateAll() error

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

type ResponseMultiError

type ResponseMultiError []error

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

func (ResponseMultiError) AllErrors

func (m ResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ResponseMultiError) Error

func (m ResponseMultiError) Error() string

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

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, the first error encountered is returned, or nil if there are no violations.

func (*Response_Data) ValidateAll

func (m *Response_Data) ValidateAll() error

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

type Response_DataMultiError

type Response_DataMultiError []error

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

func (Response_DataMultiError) AllErrors

func (m Response_DataMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Response_DataMultiError) Error

func (m Response_DataMultiError) Error() string

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

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

Cause function returns cause value.

func (Response_DataValidationError) Error

Error satisfies the builtin error interface

func (Response_DataValidationError) ErrorName

func (e Response_DataValidationError) ErrorName() string

ErrorName returns error name.

func (Response_DataValidationError) Field

Field function returns field value.

func (Response_DataValidationError) Key

Key function returns key value.

func (Response_DataValidationError) Reason

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, the first error encountered is returned, or nil if there are no violations.

func (*Response_Last) ValidateAll

func (m *Response_Last) ValidateAll() error

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

type Response_LastMultiError

type Response_LastMultiError []error

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

func (Response_LastMultiError) AllErrors

func (m Response_LastMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (Response_LastMultiError) Error

func (m Response_LastMultiError) Error() string

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

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

Cause function returns cause value.

func (Response_LastValidationError) Error

Error satisfies the builtin error interface

func (Response_LastValidationError) ErrorName

func (e Response_LastValidationError) ErrorName() string

ErrorName returns error name.

func (Response_LastValidationError) Field

Field function returns field value.

func (Response_LastValidationError) Key

Key function returns key value.

func (Response_LastValidationError) Reason

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 Testing_StreamingRequestResponseClient

type Testing_StreamingRequestResponseClient interface {
	Send(*Request) error
	Recv() (*Response, error)
	grpc.ClientStream
}

type Testing_StreamingRequestResponseServer

type Testing_StreamingRequestResponseServer interface {
	Send(*Response) error
	Recv() (*Request, error)
	grpc.ServerStream
}

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

Deprecated: Use TwoOneofs.ProtoReflect.Descriptor instead.

func (*TwoOneofs) GetM11

func (x *TwoOneofs) GetM11() int32

func (*TwoOneofs) GetM12

func (x *TwoOneofs) GetM12() int32

func (*TwoOneofs) GetM21

func (x *TwoOneofs) GetM21() int32

func (*TwoOneofs) GetM22

func (x *TwoOneofs) GetM22() int32

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

func (*TwoOneofs) Reset

func (x *TwoOneofs) Reset()

func (*TwoOneofs) String

func (x *TwoOneofs) String() string

func (*TwoOneofs) Validate

func (m *TwoOneofs) Validate() error

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

func (m *TwoOneofs) ValidateAll() error

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

type TwoOneofsMultiError

type TwoOneofsMultiError []error

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

func (TwoOneofsMultiError) AllErrors

func (m TwoOneofsMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TwoOneofsMultiError) Error

func (m TwoOneofsMultiError) Error() string

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

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

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, the first error encountered is returned, or nil if there are no violations.

func (*TwoValidOneofs) ValidateAll

func (m *TwoValidOneofs) ValidateAll() error

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

type TwoValidOneofsMultiError

type TwoValidOneofsMultiError []error

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

func (TwoValidOneofsMultiError) AllErrors

func (m TwoValidOneofsMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TwoValidOneofsMultiError) Error

func (m TwoValidOneofsMultiError) Error() string

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

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

Cause function returns cause value.

func (TwoValidOneofsValidationError) Error

Error satisfies the builtin error interface

func (TwoValidOneofsValidationError) ErrorName

func (e TwoValidOneofsValidationError) ErrorName() string

ErrorName returns error name.

func (TwoValidOneofsValidationError) Field

Field function returns field value.

func (TwoValidOneofsValidationError) Key

Key function returns key value.

func (TwoValidOneofsValidationError) Reason

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

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.

Jump to

Keyboard shortcuts

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