Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterTestApiServer(s grpc.ServiceRegistrar, srv TestApiServer)
- type BidiStreamRequest
- func (*BidiStreamRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BidiStreamRequest) GetMsg() string
- func (x *BidiStreamRequest) GetSimulateError() string
- func (*BidiStreamRequest) ProtoMessage()
- func (x *BidiStreamRequest) ProtoReflect() protoreflect.Message
- func (x *BidiStreamRequest) Reset()
- func (x *BidiStreamRequest) String() string
- type BidiStreamResponse
- type ClientStreamRequest
- func (*ClientStreamRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ClientStreamRequest) GetMsg() string
- func (x *ClientStreamRequest) GetSimulateError() string
- func (*ClientStreamRequest) ProtoMessage()
- func (x *ClientStreamRequest) ProtoReflect() protoreflect.Message
- func (x *ClientStreamRequest) Reset()
- func (x *ClientStreamRequest) String() string
- type ClientStreamResponse
- func (*ClientStreamResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ClientStreamResponse) GetMsg() string
- func (*ClientStreamResponse) ProtoMessage()
- func (x *ClientStreamResponse) ProtoReflect() protoreflect.Message
- func (x *ClientStreamResponse) Reset()
- func (x *ClientStreamResponse) String() string
- type ForeignEnum
- func (ForeignEnum) Descriptor() protoreflect.EnumDescriptor
- func (x ForeignEnum) Enum() *ForeignEnum
- func (ForeignEnum) EnumDescriptor() ([]byte, []int)deprecated
- func (x ForeignEnum) Number() protoreflect.EnumNumber
- func (x ForeignEnum) String() string
- func (ForeignEnum) Type() protoreflect.EnumType
- type ForeignMessage
- func (*ForeignMessage) Descriptor() ([]byte, []int)deprecated
- func (x *ForeignMessage) GetC() int32
- func (x *ForeignMessage) GetD() int32
- func (*ForeignMessage) ProtoMessage()
- func (x *ForeignMessage) ProtoReflect() protoreflect.Message
- func (x *ForeignMessage) Reset()
- func (x *ForeignMessage) String() string
- type ServerStreamRequest
- func (*ServerStreamRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ServerStreamRequest) GetNumRes() int32
- func (x *ServerStreamRequest) GetSimulateError() string
- func (*ServerStreamRequest) ProtoMessage()
- func (x *ServerStreamRequest) ProtoReflect() protoreflect.Message
- func (x *ServerStreamRequest) Reset()
- func (x *ServerStreamRequest) String() string
- type ServerStreamResponse
- func (*ServerStreamResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ServerStreamResponse) GetCounter() int32
- func (*ServerStreamResponse) ProtoMessage()
- func (x *ServerStreamResponse) ProtoReflect() protoreflect.Message
- func (x *ServerStreamResponse) Reset()
- func (x *ServerStreamResponse) String() string
- type TestAllTypes
- func (*TestAllTypes) Descriptor() ([]byte, []int)deprecated
- func (x *TestAllTypes) GetDefaultBool() bool
- func (x *TestAllTypes) GetDefaultBytes() []byte
- func (x *TestAllTypes) GetDefaultDouble() float64
- func (x *TestAllTypes) GetDefaultFixed32() uint32
- func (x *TestAllTypes) GetDefaultFixed64() uint64
- func (x *TestAllTypes) GetDefaultFloat() float32
- func (x *TestAllTypes) GetDefaultForeignEnum() ForeignEnum
- func (x *TestAllTypes) GetDefaultForeignMessage() *ForeignMessage
- func (x *TestAllTypes) GetDefaultInt32() int32
- func (x *TestAllTypes) GetDefaultInt64() int64
- func (x *TestAllTypes) GetDefaultNestedEnum() TestAllTypes_NestedEnum
- func (x *TestAllTypes) GetDefaultNestedMessage() *TestAllTypes_NestedMessage
- func (x *TestAllTypes) GetDefaultSfixed32() int32
- func (x *TestAllTypes) GetDefaultSfixed64() int64
- func (x *TestAllTypes) GetDefaultSint32() int32
- func (x *TestAllTypes) GetDefaultSint64() int64
- func (x *TestAllTypes) GetDefaultString() string
- func (x *TestAllTypes) GetDefaultUint32() uint32
- func (x *TestAllTypes) GetDefaultUint64() uint64
- func (x *TestAllTypes) GetDefaultWellKnown() *WellKnown
- func (x *TestAllTypes) GetMapBoolBool() map[bool]bool
- func (x *TestAllTypes) GetMapFixed32Fixed32() map[uint32]uint32
- func (x *TestAllTypes) GetMapFixed64Fixed64() map[uint64]uint64
- func (x *TestAllTypes) GetMapInt32Double() map[int32]float64
- func (x *TestAllTypes) GetMapInt32Float() map[int32]float32
- func (x *TestAllTypes) GetMapInt32Int32() map[int32]int32
- func (x *TestAllTypes) GetMapInt64Int64() map[int64]int64
- func (x *TestAllTypes) GetMapSfixed32Sfixed32() map[int32]int32
- func (x *TestAllTypes) GetMapSfixed64Sfixed64() map[int64]int64
- func (x *TestAllTypes) GetMapSint32Sint32() map[int32]int32
- func (x *TestAllTypes) GetMapSint64Sint64() map[int64]int64
- func (x *TestAllTypes) GetMapStringBytes() map[string][]byte
- func (x *TestAllTypes) GetMapStringNestedMessage() map[string]*TestAllTypes_NestedMessage
- func (x *TestAllTypes) GetMapStringString() map[string]string
- func (x *TestAllTypes) GetMapStringWellKnown() map[string]*WellKnown
- func (x *TestAllTypes) GetMapUint32Uint32() map[uint32]uint32
- func (x *TestAllTypes) GetMapUint64Uint64() map[uint64]uint64
- func (m *TestAllTypes) GetOneofDefault() isTestAllTypes_OneofDefault
- func (x *TestAllTypes) GetOneofDefaultInt32() int32
- func (x *TestAllTypes) GetOneofDefaultNestedMessage() *TestAllTypes_NestedMessage
- func (x *TestAllTypes) GetOptionalBool() bool
- func (x *TestAllTypes) GetOptionalBytes() []byte
- func (x *TestAllTypes) GetOptionalDouble() float64
- func (x *TestAllTypes) GetOptionalFixed32() uint32
- func (x *TestAllTypes) GetOptionalFixed64() uint64
- func (x *TestAllTypes) GetOptionalFloat() float32
- func (x *TestAllTypes) GetOptionalInt32() int32
- func (x *TestAllTypes) GetOptionalInt64() int64
- func (x *TestAllTypes) GetOptionalSfixed32() int32
- func (x *TestAllTypes) GetOptionalSfixed64() int64
- func (x *TestAllTypes) GetOptionalSint32() int32
- func (x *TestAllTypes) GetOptionalSint64() int64
- func (x *TestAllTypes) GetOptionalString() string
- func (x *TestAllTypes) GetOptionalUint32() uint32
- func (x *TestAllTypes) GetOptionalUint64() uint64
- func (x *TestAllTypes) GetRepeatedBool() []bool
- func (x *TestAllTypes) GetRepeatedBytes() [][]byte
- func (x *TestAllTypes) GetRepeatedDouble() []float64
- func (x *TestAllTypes) GetRepeatedFixed32() []uint32
- func (x *TestAllTypes) GetRepeatedFixed64() []uint64
- func (x *TestAllTypes) GetRepeatedFloat() []float32
- func (x *TestAllTypes) GetRepeatedForeignEnum() []ForeignEnum
- func (x *TestAllTypes) GetRepeatedForeignMessage() []*ForeignMessage
- func (x *TestAllTypes) GetRepeatedInt32() []int32
- func (x *TestAllTypes) GetRepeatedInt64() []int64
- func (x *TestAllTypes) GetRepeatedNestedEnum() []TestAllTypes_NestedEnum
- func (x *TestAllTypes) GetRepeatedNestedMessage() []*TestAllTypes_NestedMessage
- func (x *TestAllTypes) GetRepeatedSfixed32() []int32
- func (x *TestAllTypes) GetRepeatedSfixed64() []int64
- func (x *TestAllTypes) GetRepeatedSint32() []int32
- func (x *TestAllTypes) GetRepeatedSint64() []int64
- func (x *TestAllTypes) GetRepeatedString() []string
- func (x *TestAllTypes) GetRepeatedUint32() []uint32
- func (x *TestAllTypes) GetRepeatedUint64() []uint64
- func (x *TestAllTypes) GetRepeatedWellKnown() []*WellKnown
- func (*TestAllTypes) ProtoMessage()
- func (x *TestAllTypes) ProtoReflect() protoreflect.Message
- func (x *TestAllTypes) Reset()
- func (x *TestAllTypes) String() string
- type TestAllTypes_NestedEnum
- func (TestAllTypes_NestedEnum) Descriptor() protoreflect.EnumDescriptor
- func (x TestAllTypes_NestedEnum) Enum() *TestAllTypes_NestedEnum
- func (TestAllTypes_NestedEnum) EnumDescriptor() ([]byte, []int)deprecated
- func (x TestAllTypes_NestedEnum) Number() protoreflect.EnumNumber
- func (x TestAllTypes_NestedEnum) String() string
- func (TestAllTypes_NestedEnum) Type() protoreflect.EnumType
- type TestAllTypes_NestedMessage
- func (*TestAllTypes_NestedMessage) Descriptor() ([]byte, []int)deprecated
- func (x *TestAllTypes_NestedMessage) GetA() int32
- func (x *TestAllTypes_NestedMessage) GetCorecursive() *TestAllTypes
- func (*TestAllTypes_NestedMessage) ProtoMessage()
- func (x *TestAllTypes_NestedMessage) ProtoReflect() protoreflect.Message
- func (x *TestAllTypes_NestedMessage) Reset()
- func (x *TestAllTypes_NestedMessage) String() string
- type TestAllTypes_OneofDefaultInt32
- type TestAllTypes_OneofDefaultNestedMessage
- type TestApiClient
- type TestApiServer
- type TestApi_BidiStreamClient
- type TestApi_BidiStreamServer
- type TestApi_ClientStreamClient
- type TestApi_ClientStreamServer
- type TestApi_ServerStreamClient
- type TestApi_ServerStreamServer
- type UnaryRequest
- func (*UnaryRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UnaryRequest) GetMsg() string
- func (x *UnaryRequest) GetSimulateError() string
- func (*UnaryRequest) ProtoMessage()
- func (x *UnaryRequest) ProtoReflect() protoreflect.Message
- func (x *UnaryRequest) Reset()
- func (x *UnaryRequest) String() string
- type UnaryResponse
- type UnimplementedTestApiServer
- func (UnimplementedTestApiServer) BidiStream(grpc.BidiStreamingServer[BidiStreamRequest, BidiStreamResponse]) error
- func (UnimplementedTestApiServer) ClientStream(grpc.ClientStreamingServer[ClientStreamRequest, ClientStreamResponse]) error
- func (UnimplementedTestApiServer) ServerStream(*ServerStreamRequest, grpc.ServerStreamingServer[ServerStreamResponse]) error
- func (UnimplementedTestApiServer) Unary(context.Context, *UnaryRequest) (*UnaryResponse, error)
- type UnsafeTestApiServer
- type WellKnown
- func (*WellKnown) Descriptor() ([]byte, []int)deprecated
- func (x *WellKnown) GetDefaultDuration() *durationpb.Duration
- func (x *WellKnown) GetDefaultTimestamp() *timestamppb.Timestamp
- func (*WellKnown) ProtoMessage()
- func (x *WellKnown) ProtoReflect() protoreflect.Message
- func (x *WellKnown) Reset()
- func (x *WellKnown) String() string
Constants ¶
const ( TestApi_Unary_FullMethodName = "/sc.go.test.TestApi/Unary" TestApi_ServerStream_FullMethodName = "/sc.go.test.TestApi/ServerStream" TestApi_ClientStream_FullMethodName = "/sc.go.test.TestApi/ClientStream" TestApi_BidiStream_FullMethodName = "/sc.go.test.TestApi/BidiStream" )
Variables ¶
var ( ForeignEnum_name = map[int32]string{ 0: "FOREIGN_UNKNOWN", 4: "FOREIGN_FOO", 5: "FOREIGN_BAR", 6: "FOREIGN_BAZ", } ForeignEnum_value = map[string]int32{ "FOREIGN_UNKNOWN": 0, "FOREIGN_FOO": 4, "FOREIGN_BAR": 5, "FOREIGN_BAZ": 6, } )
Enum value maps for ForeignEnum.
var ( TestAllTypes_NestedEnum_name = map[int32]string{ 0: "FOO", 1: "BAR", 2: "BAZ", -1: "NEG", } TestAllTypes_NestedEnum_value = map[string]int32{ "FOO": 0, "BAR": 1, "BAZ": 2, "NEG": -1, } )
Enum value maps for TestAllTypes_NestedEnum.
var File_internal_testproto_test_proto protoreflect.FileDescriptor
var TestApi_ServiceDesc = grpc.ServiceDesc{ ServiceName: "sc.go.test.TestApi", HandlerType: (*TestApiServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Unary", Handler: _TestApi_Unary_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "ServerStream", Handler: _TestApi_ServerStream_Handler, ServerStreams: true, }, { StreamName: "ClientStream", Handler: _TestApi_ClientStream_Handler, ClientStreams: true, }, { StreamName: "BidiStream", Handler: _TestApi_BidiStream_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "internal/testproto/test.proto", }
TestApi_ServiceDesc is the grpc.ServiceDesc for TestApi service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterTestApiServer ¶
func RegisterTestApiServer(s grpc.ServiceRegistrar, srv TestApiServer)
Types ¶
type BidiStreamRequest ¶
type BidiStreamRequest struct { Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` SimulateError string `protobuf:"bytes,2,opt,name=simulate_error,json=simulateError,proto3" json:"simulate_error,omitempty"` // contains filtered or unexported fields }
func (*BidiStreamRequest) Descriptor
deprecated
func (*BidiStreamRequest) Descriptor() ([]byte, []int)
Deprecated: Use BidiStreamRequest.ProtoReflect.Descriptor instead.
func (*BidiStreamRequest) GetMsg ¶
func (x *BidiStreamRequest) GetMsg() string
func (*BidiStreamRequest) GetSimulateError ¶
func (x *BidiStreamRequest) GetSimulateError() string
func (*BidiStreamRequest) ProtoMessage ¶
func (*BidiStreamRequest) ProtoMessage()
func (*BidiStreamRequest) ProtoReflect ¶
func (x *BidiStreamRequest) ProtoReflect() protoreflect.Message
func (*BidiStreamRequest) Reset ¶
func (x *BidiStreamRequest) Reset()
func (*BidiStreamRequest) String ¶
func (x *BidiStreamRequest) String() string
type BidiStreamResponse ¶
type BidiStreamResponse struct { Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*BidiStreamResponse) Descriptor
deprecated
func (*BidiStreamResponse) Descriptor() ([]byte, []int)
Deprecated: Use BidiStreamResponse.ProtoReflect.Descriptor instead.
func (*BidiStreamResponse) GetMsg ¶
func (x *BidiStreamResponse) GetMsg() string
func (*BidiStreamResponse) ProtoMessage ¶
func (*BidiStreamResponse) ProtoMessage()
func (*BidiStreamResponse) ProtoReflect ¶
func (x *BidiStreamResponse) ProtoReflect() protoreflect.Message
func (*BidiStreamResponse) Reset ¶
func (x *BidiStreamResponse) Reset()
func (*BidiStreamResponse) String ¶
func (x *BidiStreamResponse) String() string
type ClientStreamRequest ¶
type ClientStreamRequest struct { Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` SimulateError string `protobuf:"bytes,2,opt,name=simulate_error,json=simulateError,proto3" json:"simulate_error,omitempty"` // contains filtered or unexported fields }
func (*ClientStreamRequest) Descriptor
deprecated
func (*ClientStreamRequest) Descriptor() ([]byte, []int)
Deprecated: Use ClientStreamRequest.ProtoReflect.Descriptor instead.
func (*ClientStreamRequest) GetMsg ¶
func (x *ClientStreamRequest) GetMsg() string
func (*ClientStreamRequest) GetSimulateError ¶
func (x *ClientStreamRequest) GetSimulateError() string
func (*ClientStreamRequest) ProtoMessage ¶
func (*ClientStreamRequest) ProtoMessage()
func (*ClientStreamRequest) ProtoReflect ¶
func (x *ClientStreamRequest) ProtoReflect() protoreflect.Message
func (*ClientStreamRequest) Reset ¶
func (x *ClientStreamRequest) Reset()
func (*ClientStreamRequest) String ¶
func (x *ClientStreamRequest) String() string
type ClientStreamResponse ¶
type ClientStreamResponse struct { Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*ClientStreamResponse) Descriptor
deprecated
func (*ClientStreamResponse) Descriptor() ([]byte, []int)
Deprecated: Use ClientStreamResponse.ProtoReflect.Descriptor instead.
func (*ClientStreamResponse) GetMsg ¶
func (x *ClientStreamResponse) GetMsg() string
func (*ClientStreamResponse) ProtoMessage ¶
func (*ClientStreamResponse) ProtoMessage()
func (*ClientStreamResponse) ProtoReflect ¶
func (x *ClientStreamResponse) ProtoReflect() protoreflect.Message
func (*ClientStreamResponse) Reset ¶
func (x *ClientStreamResponse) Reset()
func (*ClientStreamResponse) String ¶
func (x *ClientStreamResponse) String() string
type ForeignEnum ¶
type ForeignEnum int32
const ( ForeignEnum_FOREIGN_UNKNOWN ForeignEnum = 0 ForeignEnum_FOREIGN_FOO ForeignEnum = 4 ForeignEnum_FOREIGN_BAR ForeignEnum = 5 ForeignEnum_FOREIGN_BAZ ForeignEnum = 6 )
func (ForeignEnum) Descriptor ¶
func (ForeignEnum) Descriptor() protoreflect.EnumDescriptor
func (ForeignEnum) Enum ¶
func (x ForeignEnum) Enum() *ForeignEnum
func (ForeignEnum) EnumDescriptor
deprecated
func (ForeignEnum) EnumDescriptor() ([]byte, []int)
Deprecated: Use ForeignEnum.Descriptor instead.
func (ForeignEnum) Number ¶
func (x ForeignEnum) Number() protoreflect.EnumNumber
func (ForeignEnum) String ¶
func (x ForeignEnum) String() string
func (ForeignEnum) Type ¶
func (ForeignEnum) Type() protoreflect.EnumType
type ForeignMessage ¶
type ForeignMessage struct { C int32 `protobuf:"varint,1,opt,name=c,proto3" json:"c,omitempty"` D int32 `protobuf:"varint,2,opt,name=d,proto3" json:"d,omitempty"` // contains filtered or unexported fields }
func (*ForeignMessage) Descriptor
deprecated
func (*ForeignMessage) Descriptor() ([]byte, []int)
Deprecated: Use ForeignMessage.ProtoReflect.Descriptor instead.
func (*ForeignMessage) GetC ¶
func (x *ForeignMessage) GetC() int32
func (*ForeignMessage) GetD ¶
func (x *ForeignMessage) GetD() int32
func (*ForeignMessage) ProtoMessage ¶
func (*ForeignMessage) ProtoMessage()
func (*ForeignMessage) ProtoReflect ¶
func (x *ForeignMessage) ProtoReflect() protoreflect.Message
func (*ForeignMessage) Reset ¶
func (x *ForeignMessage) Reset()
func (*ForeignMessage) String ¶
func (x *ForeignMessage) String() string
type ServerStreamRequest ¶
type ServerStreamRequest struct { NumRes int32 `protobuf:"varint,1,opt,name=num_res,json=numRes,proto3" json:"num_res,omitempty"` SimulateError string `protobuf:"bytes,2,opt,name=simulate_error,json=simulateError,proto3" json:"simulate_error,omitempty"` // contains filtered or unexported fields }
func (*ServerStreamRequest) Descriptor
deprecated
func (*ServerStreamRequest) Descriptor() ([]byte, []int)
Deprecated: Use ServerStreamRequest.ProtoReflect.Descriptor instead.
func (*ServerStreamRequest) GetNumRes ¶
func (x *ServerStreamRequest) GetNumRes() int32
func (*ServerStreamRequest) GetSimulateError ¶
func (x *ServerStreamRequest) GetSimulateError() string
func (*ServerStreamRequest) ProtoMessage ¶
func (*ServerStreamRequest) ProtoMessage()
func (*ServerStreamRequest) ProtoReflect ¶
func (x *ServerStreamRequest) ProtoReflect() protoreflect.Message
func (*ServerStreamRequest) Reset ¶
func (x *ServerStreamRequest) Reset()
func (*ServerStreamRequest) String ¶
func (x *ServerStreamRequest) String() string
type ServerStreamResponse ¶
type ServerStreamResponse struct { Counter int32 `protobuf:"varint,1,opt,name=counter,proto3" json:"counter,omitempty"` // contains filtered or unexported fields }
func (*ServerStreamResponse) Descriptor
deprecated
func (*ServerStreamResponse) Descriptor() ([]byte, []int)
Deprecated: Use ServerStreamResponse.ProtoReflect.Descriptor instead.
func (*ServerStreamResponse) GetCounter ¶
func (x *ServerStreamResponse) GetCounter() int32
func (*ServerStreamResponse) ProtoMessage ¶
func (*ServerStreamResponse) ProtoMessage()
func (*ServerStreamResponse) ProtoReflect ¶
func (x *ServerStreamResponse) ProtoReflect() protoreflect.Message
func (*ServerStreamResponse) Reset ¶
func (x *ServerStreamResponse) Reset()
func (*ServerStreamResponse) String ¶
func (x *ServerStreamResponse) String() string
type TestAllTypes ¶
type TestAllTypes struct { DefaultInt32 int32 `protobuf:"varint,1,opt,name=default_int32,json=defaultInt32,proto3" json:"default_int32,omitempty"` DefaultInt64 int64 `protobuf:"varint,2,opt,name=default_int64,json=defaultInt64,proto3" json:"default_int64,omitempty"` DefaultUint32 uint32 `protobuf:"varint,3,opt,name=default_uint32,json=defaultUint32,proto3" json:"default_uint32,omitempty"` DefaultUint64 uint64 `protobuf:"varint,4,opt,name=default_uint64,json=defaultUint64,proto3" json:"default_uint64,omitempty"` DefaultSint32 int32 `protobuf:"zigzag32,5,opt,name=default_sint32,json=defaultSint32,proto3" json:"default_sint32,omitempty"` DefaultSint64 int64 `protobuf:"zigzag64,6,opt,name=default_sint64,json=defaultSint64,proto3" json:"default_sint64,omitempty"` DefaultFixed32 uint32 `protobuf:"fixed32,7,opt,name=default_fixed32,json=defaultFixed32,proto3" json:"default_fixed32,omitempty"` DefaultFixed64 uint64 `protobuf:"fixed64,8,opt,name=default_fixed64,json=defaultFixed64,proto3" json:"default_fixed64,omitempty"` DefaultSfixed32 int32 `protobuf:"fixed32,9,opt,name=default_sfixed32,json=defaultSfixed32,proto3" json:"default_sfixed32,omitempty"` DefaultSfixed64 int64 `protobuf:"fixed64,10,opt,name=default_sfixed64,json=defaultSfixed64,proto3" json:"default_sfixed64,omitempty"` DefaultFloat float32 `protobuf:"fixed32,11,opt,name=default_float,json=defaultFloat,proto3" json:"default_float,omitempty"` DefaultDouble float64 `protobuf:"fixed64,12,opt,name=default_double,json=defaultDouble,proto3" json:"default_double,omitempty"` DefaultBool bool `protobuf:"varint,13,opt,name=default_bool,json=defaultBool,proto3" json:"default_bool,omitempty"` DefaultString string `protobuf:"bytes,14,opt,name=default_string,json=defaultString,proto3" json:"default_string,omitempty"` DefaultBytes []byte `protobuf:"bytes,15,opt,name=default_bytes,json=defaultBytes,proto3" json:"default_bytes,omitempty"` // Types that are assignable to OneofDefault: // // *TestAllTypes_OneofDefaultInt32 // *TestAllTypes_OneofDefaultNestedMessage OneofDefault isTestAllTypes_OneofDefault `protobuf_oneof:"oneof_default"` DefaultNestedMessage *TestAllTypes_NestedMessage `protobuf:"bytes,18,opt,name=default_nested_message,json=defaultNestedMessage,proto3" json:"default_nested_message,omitempty"` DefaultForeignMessage *ForeignMessage `` /* 127-byte string literal not displayed */ DefaultWellKnown *WellKnown `protobuf:"bytes,20,opt,name=default_well_known,json=defaultWellKnown,proto3" json:"default_well_known,omitempty"` DefaultNestedEnum TestAllTypes_NestedEnum `` /* 156-byte string literal not displayed */ DefaultForeignEnum ForeignEnum `` /* 147-byte string literal not displayed */ RepeatedInt32 []int32 `protobuf:"varint,31,rep,packed,name=repeated_int32,json=repeatedInt32,proto3" json:"repeated_int32,omitempty"` RepeatedInt64 []int64 `protobuf:"varint,32,rep,packed,name=repeated_int64,json=repeatedInt64,proto3" json:"repeated_int64,omitempty"` RepeatedUint32 []uint32 `protobuf:"varint,33,rep,packed,name=repeated_uint32,json=repeatedUint32,proto3" json:"repeated_uint32,omitempty"` RepeatedUint64 []uint64 `protobuf:"varint,34,rep,packed,name=repeated_uint64,json=repeatedUint64,proto3" json:"repeated_uint64,omitempty"` RepeatedSint32 []int32 `protobuf:"zigzag32,35,rep,packed,name=repeated_sint32,json=repeatedSint32,proto3" json:"repeated_sint32,omitempty"` RepeatedSint64 []int64 `protobuf:"zigzag64,36,rep,packed,name=repeated_sint64,json=repeatedSint64,proto3" json:"repeated_sint64,omitempty"` RepeatedFixed32 []uint32 `protobuf:"fixed32,37,rep,packed,name=repeated_fixed32,json=repeatedFixed32,proto3" json:"repeated_fixed32,omitempty"` RepeatedFixed64 []uint64 `protobuf:"fixed64,38,rep,packed,name=repeated_fixed64,json=repeatedFixed64,proto3" json:"repeated_fixed64,omitempty"` RepeatedSfixed32 []int32 `protobuf:"fixed32,39,rep,packed,name=repeated_sfixed32,json=repeatedSfixed32,proto3" json:"repeated_sfixed32,omitempty"` RepeatedSfixed64 []int64 `protobuf:"fixed64,40,rep,packed,name=repeated_sfixed64,json=repeatedSfixed64,proto3" json:"repeated_sfixed64,omitempty"` RepeatedFloat []float32 `protobuf:"fixed32,41,rep,packed,name=repeated_float,json=repeatedFloat,proto3" json:"repeated_float,omitempty"` RepeatedDouble []float64 `protobuf:"fixed64,42,rep,packed,name=repeated_double,json=repeatedDouble,proto3" json:"repeated_double,omitempty"` RepeatedBool []bool `protobuf:"varint,43,rep,packed,name=repeated_bool,json=repeatedBool,proto3" json:"repeated_bool,omitempty"` RepeatedString []string `protobuf:"bytes,44,rep,name=repeated_string,json=repeatedString,proto3" json:"repeated_string,omitempty"` RepeatedBytes [][]byte `protobuf:"bytes,45,rep,name=repeated_bytes,json=repeatedBytes,proto3" json:"repeated_bytes,omitempty"` RepeatedNestedMessage []*TestAllTypes_NestedMessage `` /* 127-byte string literal not displayed */ RepeatedForeignMessage []*ForeignMessage `` /* 130-byte string literal not displayed */ RepeatedWellKnown []*WellKnown `protobuf:"bytes,50,rep,name=repeated_well_known,json=repeatedWellKnown,proto3" json:"repeated_well_known,omitempty"` RepeatedNestedEnum []TestAllTypes_NestedEnum `` /* 166-byte string literal not displayed */ RepeatedForeignEnum []ForeignEnum `` /* 157-byte string literal not displayed */ MapInt32Int32 map[int32]int32 `` /* 193-byte string literal not displayed */ MapInt64Int64 map[int64]int64 `` /* 193-byte string literal not displayed */ MapUint32Uint32 map[uint32]uint32 `` /* 199-byte string literal not displayed */ MapUint64Uint64 map[uint64]uint64 `` /* 199-byte string literal not displayed */ MapSint32Sint32 map[int32]int32 `` /* 203-byte string literal not displayed */ MapSint64Sint64 map[int64]int64 `` /* 203-byte string literal not displayed */ MapFixed32Fixed32 map[uint32]uint32 `` /* 207-byte string literal not displayed */ MapFixed64Fixed64 map[uint64]uint64 `` /* 207-byte string literal not displayed */ MapSfixed32Sfixed32 map[int32]int32 `` /* 213-byte string literal not displayed */ MapSfixed64Sfixed64 map[int64]int64 `` /* 213-byte string literal not displayed */ MapInt32Float map[int32]float32 `` /* 194-byte string literal not displayed */ MapInt32Double map[int32]float64 `` /* 197-byte string literal not displayed */ MapBoolBool map[bool]bool `` /* 187-byte string literal not displayed */ MapStringString map[string]string `` /* 197-byte string literal not displayed */ MapStringBytes map[string][]byte `` /* 194-byte string literal not displayed */ MapStringNestedMessage map[string]*TestAllTypes_NestedMessage `` /* 220-byte string literal not displayed */ MapStringWellKnown map[string]*WellKnown `` /* 208-byte string literal not displayed */ OptionalInt32 *int32 `protobuf:"varint,80,opt,name=optional_int32,json=optionalInt32,proto3,oneof" json:"optional_int32,omitempty"` OptionalInt64 *int64 `protobuf:"varint,81,opt,name=optional_int64,json=optionalInt64,proto3,oneof" json:"optional_int64,omitempty"` OptionalUint32 *uint32 `protobuf:"varint,82,opt,name=optional_uint32,json=optionalUint32,proto3,oneof" json:"optional_uint32,omitempty"` OptionalUint64 *uint64 `protobuf:"varint,83,opt,name=optional_uint64,json=optionalUint64,proto3,oneof" json:"optional_uint64,omitempty"` OptionalSint32 *int32 `protobuf:"zigzag32,84,opt,name=optional_sint32,json=optionalSint32,proto3,oneof" json:"optional_sint32,omitempty"` OptionalSint64 *int64 `protobuf:"zigzag64,85,opt,name=optional_sint64,json=optionalSint64,proto3,oneof" json:"optional_sint64,omitempty"` OptionalFixed32 *uint32 `protobuf:"fixed32,86,opt,name=optional_fixed32,json=optionalFixed32,proto3,oneof" json:"optional_fixed32,omitempty"` OptionalFixed64 *uint64 `protobuf:"fixed64,87,opt,name=optional_fixed64,json=optionalFixed64,proto3,oneof" json:"optional_fixed64,omitempty"` OptionalSfixed32 *int32 `protobuf:"fixed32,88,opt,name=optional_sfixed32,json=optionalSfixed32,proto3,oneof" json:"optional_sfixed32,omitempty"` OptionalSfixed64 *int64 `protobuf:"fixed64,89,opt,name=optional_sfixed64,json=optionalSfixed64,proto3,oneof" json:"optional_sfixed64,omitempty"` OptionalFloat *float32 `protobuf:"fixed32,90,opt,name=optional_float,json=optionalFloat,proto3,oneof" json:"optional_float,omitempty"` OptionalDouble *float64 `protobuf:"fixed64,91,opt,name=optional_double,json=optionalDouble,proto3,oneof" json:"optional_double,omitempty"` OptionalBool *bool `protobuf:"varint,92,opt,name=optional_bool,json=optionalBool,proto3,oneof" json:"optional_bool,omitempty"` OptionalString *string `protobuf:"bytes,93,opt,name=optional_string,json=optionalString,proto3,oneof" json:"optional_string,omitempty"` OptionalBytes []byte `protobuf:"bytes,94,opt,name=optional_bytes,json=optionalBytes,proto3,oneof" json:"optional_bytes,omitempty"` // contains filtered or unexported fields }
func (*TestAllTypes) Descriptor
deprecated
func (*TestAllTypes) Descriptor() ([]byte, []int)
Deprecated: Use TestAllTypes.ProtoReflect.Descriptor instead.
func (*TestAllTypes) GetDefaultBool ¶
func (x *TestAllTypes) GetDefaultBool() bool
func (*TestAllTypes) GetDefaultBytes ¶
func (x *TestAllTypes) GetDefaultBytes() []byte
func (*TestAllTypes) GetDefaultDouble ¶
func (x *TestAllTypes) GetDefaultDouble() float64
func (*TestAllTypes) GetDefaultFixed32 ¶
func (x *TestAllTypes) GetDefaultFixed32() uint32
func (*TestAllTypes) GetDefaultFixed64 ¶
func (x *TestAllTypes) GetDefaultFixed64() uint64
func (*TestAllTypes) GetDefaultFloat ¶
func (x *TestAllTypes) GetDefaultFloat() float32
func (*TestAllTypes) GetDefaultForeignEnum ¶
func (x *TestAllTypes) GetDefaultForeignEnum() ForeignEnum
func (*TestAllTypes) GetDefaultForeignMessage ¶
func (x *TestAllTypes) GetDefaultForeignMessage() *ForeignMessage
func (*TestAllTypes) GetDefaultInt32 ¶
func (x *TestAllTypes) GetDefaultInt32() int32
func (*TestAllTypes) GetDefaultInt64 ¶
func (x *TestAllTypes) GetDefaultInt64() int64
func (*TestAllTypes) GetDefaultNestedEnum ¶
func (x *TestAllTypes) GetDefaultNestedEnum() TestAllTypes_NestedEnum
func (*TestAllTypes) GetDefaultNestedMessage ¶
func (x *TestAllTypes) GetDefaultNestedMessage() *TestAllTypes_NestedMessage
func (*TestAllTypes) GetDefaultSfixed32 ¶
func (x *TestAllTypes) GetDefaultSfixed32() int32
func (*TestAllTypes) GetDefaultSfixed64 ¶
func (x *TestAllTypes) GetDefaultSfixed64() int64
func (*TestAllTypes) GetDefaultSint32 ¶
func (x *TestAllTypes) GetDefaultSint32() int32
func (*TestAllTypes) GetDefaultSint64 ¶
func (x *TestAllTypes) GetDefaultSint64() int64
func (*TestAllTypes) GetDefaultString ¶
func (x *TestAllTypes) GetDefaultString() string
func (*TestAllTypes) GetDefaultUint32 ¶
func (x *TestAllTypes) GetDefaultUint32() uint32
func (*TestAllTypes) GetDefaultUint64 ¶
func (x *TestAllTypes) GetDefaultUint64() uint64
func (*TestAllTypes) GetDefaultWellKnown ¶
func (x *TestAllTypes) GetDefaultWellKnown() *WellKnown
func (*TestAllTypes) GetMapBoolBool ¶
func (x *TestAllTypes) GetMapBoolBool() map[bool]bool
func (*TestAllTypes) GetMapFixed32Fixed32 ¶
func (x *TestAllTypes) GetMapFixed32Fixed32() map[uint32]uint32
func (*TestAllTypes) GetMapFixed64Fixed64 ¶
func (x *TestAllTypes) GetMapFixed64Fixed64() map[uint64]uint64
func (*TestAllTypes) GetMapInt32Double ¶
func (x *TestAllTypes) GetMapInt32Double() map[int32]float64
func (*TestAllTypes) GetMapInt32Float ¶
func (x *TestAllTypes) GetMapInt32Float() map[int32]float32
func (*TestAllTypes) GetMapInt32Int32 ¶
func (x *TestAllTypes) GetMapInt32Int32() map[int32]int32
func (*TestAllTypes) GetMapInt64Int64 ¶
func (x *TestAllTypes) GetMapInt64Int64() map[int64]int64
func (*TestAllTypes) GetMapSfixed32Sfixed32 ¶
func (x *TestAllTypes) GetMapSfixed32Sfixed32() map[int32]int32
func (*TestAllTypes) GetMapSfixed64Sfixed64 ¶
func (x *TestAllTypes) GetMapSfixed64Sfixed64() map[int64]int64
func (*TestAllTypes) GetMapSint32Sint32 ¶
func (x *TestAllTypes) GetMapSint32Sint32() map[int32]int32
func (*TestAllTypes) GetMapSint64Sint64 ¶
func (x *TestAllTypes) GetMapSint64Sint64() map[int64]int64
func (*TestAllTypes) GetMapStringBytes ¶
func (x *TestAllTypes) GetMapStringBytes() map[string][]byte
func (*TestAllTypes) GetMapStringNestedMessage ¶
func (x *TestAllTypes) GetMapStringNestedMessage() map[string]*TestAllTypes_NestedMessage
func (*TestAllTypes) GetMapStringString ¶
func (x *TestAllTypes) GetMapStringString() map[string]string
func (*TestAllTypes) GetMapStringWellKnown ¶
func (x *TestAllTypes) GetMapStringWellKnown() map[string]*WellKnown
func (*TestAllTypes) GetMapUint32Uint32 ¶
func (x *TestAllTypes) GetMapUint32Uint32() map[uint32]uint32
func (*TestAllTypes) GetMapUint64Uint64 ¶
func (x *TestAllTypes) GetMapUint64Uint64() map[uint64]uint64
func (*TestAllTypes) GetOneofDefault ¶
func (m *TestAllTypes) GetOneofDefault() isTestAllTypes_OneofDefault
func (*TestAllTypes) GetOneofDefaultInt32 ¶
func (x *TestAllTypes) GetOneofDefaultInt32() int32
func (*TestAllTypes) GetOneofDefaultNestedMessage ¶
func (x *TestAllTypes) GetOneofDefaultNestedMessage() *TestAllTypes_NestedMessage
func (*TestAllTypes) GetOptionalBool ¶
func (x *TestAllTypes) GetOptionalBool() bool
func (*TestAllTypes) GetOptionalBytes ¶
func (x *TestAllTypes) GetOptionalBytes() []byte
func (*TestAllTypes) GetOptionalDouble ¶
func (x *TestAllTypes) GetOptionalDouble() float64
func (*TestAllTypes) GetOptionalFixed32 ¶
func (x *TestAllTypes) GetOptionalFixed32() uint32
func (*TestAllTypes) GetOptionalFixed64 ¶
func (x *TestAllTypes) GetOptionalFixed64() uint64
func (*TestAllTypes) GetOptionalFloat ¶
func (x *TestAllTypes) GetOptionalFloat() float32
func (*TestAllTypes) GetOptionalInt32 ¶
func (x *TestAllTypes) GetOptionalInt32() int32
func (*TestAllTypes) GetOptionalInt64 ¶
func (x *TestAllTypes) GetOptionalInt64() int64
func (*TestAllTypes) GetOptionalSfixed32 ¶
func (x *TestAllTypes) GetOptionalSfixed32() int32
func (*TestAllTypes) GetOptionalSfixed64 ¶
func (x *TestAllTypes) GetOptionalSfixed64() int64
func (*TestAllTypes) GetOptionalSint32 ¶
func (x *TestAllTypes) GetOptionalSint32() int32
func (*TestAllTypes) GetOptionalSint64 ¶
func (x *TestAllTypes) GetOptionalSint64() int64
func (*TestAllTypes) GetOptionalString ¶
func (x *TestAllTypes) GetOptionalString() string
func (*TestAllTypes) GetOptionalUint32 ¶
func (x *TestAllTypes) GetOptionalUint32() uint32
func (*TestAllTypes) GetOptionalUint64 ¶
func (x *TestAllTypes) GetOptionalUint64() uint64
func (*TestAllTypes) GetRepeatedBool ¶
func (x *TestAllTypes) GetRepeatedBool() []bool
func (*TestAllTypes) GetRepeatedBytes ¶
func (x *TestAllTypes) GetRepeatedBytes() [][]byte
func (*TestAllTypes) GetRepeatedDouble ¶
func (x *TestAllTypes) GetRepeatedDouble() []float64
func (*TestAllTypes) GetRepeatedFixed32 ¶
func (x *TestAllTypes) GetRepeatedFixed32() []uint32
func (*TestAllTypes) GetRepeatedFixed64 ¶
func (x *TestAllTypes) GetRepeatedFixed64() []uint64
func (*TestAllTypes) GetRepeatedFloat ¶
func (x *TestAllTypes) GetRepeatedFloat() []float32
func (*TestAllTypes) GetRepeatedForeignEnum ¶
func (x *TestAllTypes) GetRepeatedForeignEnum() []ForeignEnum
func (*TestAllTypes) GetRepeatedForeignMessage ¶
func (x *TestAllTypes) GetRepeatedForeignMessage() []*ForeignMessage
func (*TestAllTypes) GetRepeatedInt32 ¶
func (x *TestAllTypes) GetRepeatedInt32() []int32
func (*TestAllTypes) GetRepeatedInt64 ¶
func (x *TestAllTypes) GetRepeatedInt64() []int64
func (*TestAllTypes) GetRepeatedNestedEnum ¶
func (x *TestAllTypes) GetRepeatedNestedEnum() []TestAllTypes_NestedEnum
func (*TestAllTypes) GetRepeatedNestedMessage ¶
func (x *TestAllTypes) GetRepeatedNestedMessage() []*TestAllTypes_NestedMessage
func (*TestAllTypes) GetRepeatedSfixed32 ¶
func (x *TestAllTypes) GetRepeatedSfixed32() []int32
func (*TestAllTypes) GetRepeatedSfixed64 ¶
func (x *TestAllTypes) GetRepeatedSfixed64() []int64
func (*TestAllTypes) GetRepeatedSint32 ¶
func (x *TestAllTypes) GetRepeatedSint32() []int32
func (*TestAllTypes) GetRepeatedSint64 ¶
func (x *TestAllTypes) GetRepeatedSint64() []int64
func (*TestAllTypes) GetRepeatedString ¶
func (x *TestAllTypes) GetRepeatedString() []string
func (*TestAllTypes) GetRepeatedUint32 ¶
func (x *TestAllTypes) GetRepeatedUint32() []uint32
func (*TestAllTypes) GetRepeatedUint64 ¶
func (x *TestAllTypes) GetRepeatedUint64() []uint64
func (*TestAllTypes) GetRepeatedWellKnown ¶
func (x *TestAllTypes) GetRepeatedWellKnown() []*WellKnown
func (*TestAllTypes) ProtoMessage ¶
func (*TestAllTypes) ProtoMessage()
func (*TestAllTypes) ProtoReflect ¶
func (x *TestAllTypes) ProtoReflect() protoreflect.Message
func (*TestAllTypes) Reset ¶
func (x *TestAllTypes) Reset()
func (*TestAllTypes) String ¶
func (x *TestAllTypes) String() string
type TestAllTypes_NestedEnum ¶
type TestAllTypes_NestedEnum int32
const ( TestAllTypes_FOO TestAllTypes_NestedEnum = 0 TestAllTypes_BAR TestAllTypes_NestedEnum = 1 TestAllTypes_BAZ TestAllTypes_NestedEnum = 2 TestAllTypes_NEG TestAllTypes_NestedEnum = -1 // Intentionally negative. )
func (TestAllTypes_NestedEnum) Descriptor ¶
func (TestAllTypes_NestedEnum) Descriptor() protoreflect.EnumDescriptor
func (TestAllTypes_NestedEnum) Enum ¶
func (x TestAllTypes_NestedEnum) Enum() *TestAllTypes_NestedEnum
func (TestAllTypes_NestedEnum) EnumDescriptor
deprecated
func (TestAllTypes_NestedEnum) EnumDescriptor() ([]byte, []int)
Deprecated: Use TestAllTypes_NestedEnum.Descriptor instead.
func (TestAllTypes_NestedEnum) Number ¶
func (x TestAllTypes_NestedEnum) Number() protoreflect.EnumNumber
func (TestAllTypes_NestedEnum) String ¶
func (x TestAllTypes_NestedEnum) String() string
func (TestAllTypes_NestedEnum) Type ¶
func (TestAllTypes_NestedEnum) Type() protoreflect.EnumType
type TestAllTypes_NestedMessage ¶
type TestAllTypes_NestedMessage struct { A int32 `protobuf:"varint,1,opt,name=a,proto3" json:"a,omitempty"` Corecursive *TestAllTypes `protobuf:"bytes,2,opt,name=corecursive,proto3" json:"corecursive,omitempty"` // contains filtered or unexported fields }
func (*TestAllTypes_NestedMessage) Descriptor
deprecated
func (*TestAllTypes_NestedMessage) Descriptor() ([]byte, []int)
Deprecated: Use TestAllTypes_NestedMessage.ProtoReflect.Descriptor instead.
func (*TestAllTypes_NestedMessage) GetA ¶
func (x *TestAllTypes_NestedMessage) GetA() int32
func (*TestAllTypes_NestedMessage) GetCorecursive ¶
func (x *TestAllTypes_NestedMessage) GetCorecursive() *TestAllTypes
func (*TestAllTypes_NestedMessage) ProtoMessage ¶
func (*TestAllTypes_NestedMessage) ProtoMessage()
func (*TestAllTypes_NestedMessage) ProtoReflect ¶
func (x *TestAllTypes_NestedMessage) ProtoReflect() protoreflect.Message
func (*TestAllTypes_NestedMessage) Reset ¶
func (x *TestAllTypes_NestedMessage) Reset()
func (*TestAllTypes_NestedMessage) String ¶
func (x *TestAllTypes_NestedMessage) String() string
type TestAllTypes_OneofDefaultInt32 ¶
type TestAllTypes_OneofDefaultInt32 struct {
OneofDefaultInt32 int32 `protobuf:"varint,16,opt,name=oneof_default_int32,json=oneofDefaultInt32,proto3,oneof"`
}
type TestAllTypes_OneofDefaultNestedMessage ¶
type TestAllTypes_OneofDefaultNestedMessage struct {
OneofDefaultNestedMessage *TestAllTypes_NestedMessage `protobuf:"bytes,17,opt,name=oneof_default_nested_message,json=oneofDefaultNestedMessage,proto3,oneof"`
}
type TestApiClient ¶
type TestApiClient interface { Unary(ctx context.Context, in *UnaryRequest, opts ...grpc.CallOption) (*UnaryResponse, error) ServerStream(ctx context.Context, in *ServerStreamRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[ServerStreamResponse], error) ClientStream(ctx context.Context, opts ...grpc.CallOption) (grpc.ClientStreamingClient[ClientStreamRequest, ClientStreamResponse], error) BidiStream(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[BidiStreamRequest, BidiStreamResponse], error) }
TestApiClient is the client API for TestApi 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 NewTestApiClient ¶
func NewTestApiClient(cc grpc.ClientConnInterface) TestApiClient
type TestApiServer ¶
type TestApiServer interface { Unary(context.Context, *UnaryRequest) (*UnaryResponse, error) ServerStream(*ServerStreamRequest, grpc.ServerStreamingServer[ServerStreamResponse]) error ClientStream(grpc.ClientStreamingServer[ClientStreamRequest, ClientStreamResponse]) error BidiStream(grpc.BidiStreamingServer[BidiStreamRequest, BidiStreamResponse]) error // contains filtered or unexported methods }
TestApiServer is the server API for TestApi service. All implementations must embed UnimplementedTestApiServer for forward compatibility.
type TestApi_BidiStreamClient ¶
type TestApi_BidiStreamClient = grpc.BidiStreamingClient[BidiStreamRequest, BidiStreamResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type TestApi_BidiStreamServer ¶
type TestApi_BidiStreamServer = grpc.BidiStreamingServer[BidiStreamRequest, BidiStreamResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type TestApi_ClientStreamClient ¶
type TestApi_ClientStreamClient = grpc.ClientStreamingClient[ClientStreamRequest, ClientStreamResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type TestApi_ClientStreamServer ¶
type TestApi_ClientStreamServer = grpc.ClientStreamingServer[ClientStreamRequest, ClientStreamResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type TestApi_ServerStreamClient ¶
type TestApi_ServerStreamClient = grpc.ServerStreamingClient[ServerStreamResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type TestApi_ServerStreamServer ¶
type TestApi_ServerStreamServer = grpc.ServerStreamingServer[ServerStreamResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type UnaryRequest ¶
type UnaryRequest struct { Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` SimulateError string `protobuf:"bytes,2,opt,name=simulate_error,json=simulateError,proto3" json:"simulate_error,omitempty"` // contains filtered or unexported fields }
func (*UnaryRequest) Descriptor
deprecated
func (*UnaryRequest) Descriptor() ([]byte, []int)
Deprecated: Use UnaryRequest.ProtoReflect.Descriptor instead.
func (*UnaryRequest) GetMsg ¶
func (x *UnaryRequest) GetMsg() string
func (*UnaryRequest) GetSimulateError ¶
func (x *UnaryRequest) GetSimulateError() string
func (*UnaryRequest) ProtoMessage ¶
func (*UnaryRequest) ProtoMessage()
func (*UnaryRequest) ProtoReflect ¶
func (x *UnaryRequest) ProtoReflect() protoreflect.Message
func (*UnaryRequest) Reset ¶
func (x *UnaryRequest) Reset()
func (*UnaryRequest) String ¶
func (x *UnaryRequest) String() string
type UnaryResponse ¶
type UnaryResponse struct { Msg string `protobuf:"bytes,1,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*UnaryResponse) Descriptor
deprecated
func (*UnaryResponse) Descriptor() ([]byte, []int)
Deprecated: Use UnaryResponse.ProtoReflect.Descriptor instead.
func (*UnaryResponse) GetMsg ¶
func (x *UnaryResponse) GetMsg() string
func (*UnaryResponse) ProtoMessage ¶
func (*UnaryResponse) ProtoMessage()
func (*UnaryResponse) ProtoReflect ¶
func (x *UnaryResponse) ProtoReflect() protoreflect.Message
func (*UnaryResponse) Reset ¶
func (x *UnaryResponse) Reset()
func (*UnaryResponse) String ¶
func (x *UnaryResponse) String() string
type UnimplementedTestApiServer ¶
type UnimplementedTestApiServer struct{}
UnimplementedTestApiServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedTestApiServer) BidiStream ¶
func (UnimplementedTestApiServer) BidiStream(grpc.BidiStreamingServer[BidiStreamRequest, BidiStreamResponse]) error
func (UnimplementedTestApiServer) ClientStream ¶
func (UnimplementedTestApiServer) ClientStream(grpc.ClientStreamingServer[ClientStreamRequest, ClientStreamResponse]) error
func (UnimplementedTestApiServer) ServerStream ¶
func (UnimplementedTestApiServer) ServerStream(*ServerStreamRequest, grpc.ServerStreamingServer[ServerStreamResponse]) error
func (UnimplementedTestApiServer) Unary ¶
func (UnimplementedTestApiServer) Unary(context.Context, *UnaryRequest) (*UnaryResponse, error)
type UnsafeTestApiServer ¶
type UnsafeTestApiServer interface {
// contains filtered or unexported methods
}
UnsafeTestApiServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TestApiServer will result in compilation errors.
type WellKnown ¶
type WellKnown struct { DefaultTimestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=default_timestamp,json=defaultTimestamp,proto3" json:"default_timestamp,omitempty"` DefaultDuration *durationpb.Duration `protobuf:"bytes,2,opt,name=default_duration,json=defaultDuration,proto3" json:"default_duration,omitempty"` // contains filtered or unexported fields }
func (*WellKnown) Descriptor
deprecated
func (*WellKnown) GetDefaultDuration ¶
func (x *WellKnown) GetDefaultDuration() *durationpb.Duration
func (*WellKnown) GetDefaultTimestamp ¶
func (x *WellKnown) GetDefaultTimestamp() *timestamppb.Timestamp
func (*WellKnown) ProtoMessage ¶
func (*WellKnown) ProtoMessage()
func (*WellKnown) ProtoReflect ¶
func (x *WellKnown) ProtoReflect() protoreflect.Message