Documentation ¶
Index ¶
- Variables
- func RegisterExemplarServer(s grpc.ServiceRegistrar, srv ExemplarServer)
- type ExemplarClient
- type ExemplarServer
- type SampleRequest
- type SampleResponse
- func (*SampleResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SampleResponse) GetABool() bool
- func (x *SampleResponse) GetABytes() []byte
- func (x *SampleResponse) GetADeepMap() map[string]*SampleResponse_SampleMessage2
- func (x *SampleResponse) GetADouble() float64
- func (x *SampleResponse) GetAEnum() SampleResponse_SampleEnum
- func (x *SampleResponse) GetAEnumList() []SampleResponse_SampleEnum
- func (x *SampleResponse) GetAEnumOneof() SampleResponse_SampleEnum
- func (x *SampleResponse) GetAFixed32() uint32
- func (x *SampleResponse) GetAFixed64() uint64
- func (x *SampleResponse) GetAFloat() float32
- func (x *SampleResponse) GetAInt32() int32
- func (x *SampleResponse) GetAInt64() int64
- func (x *SampleResponse) GetAIntList() []int32
- func (x *SampleResponse) GetAMap() map[string]bool
- func (x *SampleResponse) GetAMessage() *SampleResponse_SampleMessage1
- func (x *SampleResponse) GetAMessageList() []*SampleResponse_SampleMessage1
- func (x *SampleResponse) GetAMessageOneof() *SampleResponse_SampleMessage1
- func (m *SampleResponse) GetAOneof() isSampleResponse_AOneof
- func (x *SampleResponse) GetASfixed32() int32
- func (x *SampleResponse) GetASfixed64() int64
- func (x *SampleResponse) GetASint32() int32
- func (x *SampleResponse) GetASint64() int64
- func (x *SampleResponse) GetAString() string
- func (x *SampleResponse) GetAStringOneof() string
- func (x *SampleResponse) GetAUint32() uint32
- func (x *SampleResponse) GetAUint64() uint64
- func (*SampleResponse) ProtoMessage()
- func (x *SampleResponse) ProtoReflect() protoreflect.Message
- func (x *SampleResponse) Reset()
- func (x *SampleResponse) String() string
- type SampleResponse_AEnumOneof
- type SampleResponse_AMessageOneof
- type SampleResponse_AStringOneof
- type SampleResponse_SampleEnum
- func (SampleResponse_SampleEnum) Descriptor() protoreflect.EnumDescriptor
- func (x SampleResponse_SampleEnum) Enum() *SampleResponse_SampleEnum
- func (SampleResponse_SampleEnum) EnumDescriptor() ([]byte, []int)deprecated
- func (x SampleResponse_SampleEnum) Number() protoreflect.EnumNumber
- func (x SampleResponse_SampleEnum) String() string
- func (SampleResponse_SampleEnum) Type() protoreflect.EnumType
- type SampleResponse_SampleMessage1
- func (*SampleResponse_SampleMessage1) Descriptor() ([]byte, []int)deprecated
- func (x *SampleResponse_SampleMessage1) GetField() string
- func (x *SampleResponse_SampleMessage1) GetRepeat() []int32
- func (*SampleResponse_SampleMessage1) ProtoMessage()
- func (x *SampleResponse_SampleMessage1) ProtoReflect() protoreflect.Message
- func (x *SampleResponse_SampleMessage1) Reset()
- func (x *SampleResponse_SampleMessage1) String() string
- type SampleResponse_SampleMessage2
- func (*SampleResponse_SampleMessage2) Descriptor() ([]byte, []int)deprecated
- func (x *SampleResponse_SampleMessage2) GetAMsgList() []*SampleResponse_SampleMessage1
- func (x *SampleResponse_SampleMessage2) GetAStringList() []string
- func (x *SampleResponse_SampleMessage2) GetWeird_FieldName_1_() string
- func (*SampleResponse_SampleMessage2) ProtoMessage()
- func (x *SampleResponse_SampleMessage2) ProtoReflect() protoreflect.Message
- func (x *SampleResponse_SampleMessage2) Reset()
- func (x *SampleResponse_SampleMessage2) String() string
- type UnimplementedExemplarServer
- type UnsafeExemplarServer
Constants ¶
This section is empty.
Variables ¶
var ( SampleResponse_SampleEnum_name = map[int32]string{ 0: "SAMPLE_ENUM_UNSPECIFIED", 1: "SAMPLE_ENUM_FIRST", 2: "SAMPLE_ENUM_SECOND", } SampleResponse_SampleEnum_value = map[string]int32{ "SAMPLE_ENUM_UNSPECIFIED": 0, "SAMPLE_ENUM_FIRST": 1, "SAMPLE_ENUM_SECOND": 2, } )
Enum value maps for SampleResponse_SampleEnum.
var Exemplar_ServiceDesc = grpc.ServiceDesc{ ServiceName: "exemplar.Exemplar", HandlerType: (*ExemplarServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Sample", Handler: _Exemplar_Sample_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "exemplar/exemplar.proto", }
Exemplar_ServiceDesc is the grpc.ServiceDesc for Exemplar service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_exemplar_exemplar_proto protoreflect.FileDescriptor
Functions ¶
func RegisterExemplarServer ¶
func RegisterExemplarServer(s grpc.ServiceRegistrar, srv ExemplarServer)
Types ¶
type ExemplarClient ¶
type ExemplarClient interface {
Sample(ctx context.Context, in *SampleRequest, opts ...grpc.CallOption) (*SampleResponse, error)
}
ExemplarClient is the client API for Exemplar 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 NewExemplarClient ¶
func NewExemplarClient(cc grpc.ClientConnInterface) ExemplarClient
type ExemplarServer ¶
type ExemplarServer interface { Sample(context.Context, *SampleRequest) (*SampleResponse, error) // contains filtered or unexported methods }
ExemplarServer is the server API for Exemplar service. All implementations must embed UnimplementedExemplarServer for forward compatibility
type SampleRequest ¶
type SampleRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*SampleRequest) Descriptor
deprecated
func (*SampleRequest) Descriptor() ([]byte, []int)
Deprecated: Use SampleRequest.ProtoReflect.Descriptor instead.
func (*SampleRequest) GetName ¶
func (x *SampleRequest) GetName() string
func (*SampleRequest) ProtoMessage ¶
func (*SampleRequest) ProtoMessage()
func (*SampleRequest) ProtoReflect ¶
func (x *SampleRequest) ProtoReflect() protoreflect.Message
func (*SampleRequest) Reset ¶
func (x *SampleRequest) Reset()
func (*SampleRequest) String ¶
func (x *SampleRequest) String() string
type SampleResponse ¶
type SampleResponse struct { // Basic types ABool bool `protobuf:"varint,1,opt,name=a_bool,json=aBool,proto3" json:"a_bool,omitempty"` AInt32 int32 `protobuf:"varint,2,opt,name=a_int32,json=aInt32,proto3" json:"a_int32,omitempty"` ASint32 int32 `protobuf:"zigzag32,3,opt,name=a_sint32,json=aSint32,proto3" json:"a_sint32,omitempty"` ASfixed32 int32 `protobuf:"fixed32,4,opt,name=a_sfixed32,json=aSfixed32,proto3" json:"a_sfixed32,omitempty"` AUint32 uint32 `protobuf:"varint,5,opt,name=a_uint32,json=aUint32,proto3" json:"a_uint32,omitempty"` AFixed32 uint32 `protobuf:"fixed32,6,opt,name=a_fixed32,json=aFixed32,proto3" json:"a_fixed32,omitempty"` AInt64 int64 `protobuf:"varint,7,opt,name=a_int64,json=aInt64,proto3" json:"a_int64,omitempty"` ASint64 int64 `protobuf:"zigzag64,8,opt,name=a_sint64,json=aSint64,proto3" json:"a_sint64,omitempty"` ASfixed64 int64 `protobuf:"fixed64,9,opt,name=a_sfixed64,json=aSfixed64,proto3" json:"a_sfixed64,omitempty"` AUint64 uint64 `protobuf:"varint,10,opt,name=a_uint64,json=aUint64,proto3" json:"a_uint64,omitempty"` AFixed64 uint64 `protobuf:"fixed64,11,opt,name=a_fixed64,json=aFixed64,proto3" json:"a_fixed64,omitempty"` AFloat float32 `protobuf:"fixed32,12,opt,name=a_float,json=aFloat,proto3" json:"a_float,omitempty"` ADouble float64 `protobuf:"fixed64,13,opt,name=a_double,json=aDouble,proto3" json:"a_double,omitempty"` AString string `protobuf:"bytes,14,opt,name=a_string,json=aString,proto3" json:"a_string,omitempty"` ABytes []byte `protobuf:"bytes,15,opt,name=a_bytes,json=aBytes,proto3" json:"a_bytes,omitempty"` AEnum SampleResponse_SampleEnum `protobuf:"varint,16,opt,name=a_enum,json=aEnum,proto3,enum=exemplar.SampleResponse_SampleEnum" json:"a_enum,omitempty"` AMessage *SampleResponse_SampleMessage1 `protobuf:"bytes,17,opt,name=a_message,json=aMessage,proto3" json:"a_message,omitempty"` // Maps AMap map[string]bool `` /* 163-byte string literal not displayed */ ADeepMap map[string]*SampleResponse_SampleMessage2 `` /* 176-byte string literal not displayed */ // Repeated AIntList []int32 `protobuf:"varint,20,rep,packed,name=a_int_list,json=aIntList,proto3" json:"a_int_list,omitempty"` AEnumList []SampleResponse_SampleEnum `` /* 139-byte string literal not displayed */ AMessageList []*SampleResponse_SampleMessage1 `protobuf:"bytes,22,rep,name=a_message_list,json=aMessageList,proto3" json:"a_message_list,omitempty"` // Oneof // // Types that are assignable to AOneof: // *SampleResponse_AStringOneof // *SampleResponse_AEnumOneof // *SampleResponse_AMessageOneof AOneof isSampleResponse_AOneof `protobuf_oneof:"a_oneof"` // contains filtered or unexported fields }
A response that contains all types of values to see what form each takes in a JSON/jsonnet message.
func (*SampleResponse) Descriptor
deprecated
func (*SampleResponse) Descriptor() ([]byte, []int)
Deprecated: Use SampleResponse.ProtoReflect.Descriptor instead.
func (*SampleResponse) GetABool ¶
func (x *SampleResponse) GetABool() bool
func (*SampleResponse) GetABytes ¶
func (x *SampleResponse) GetABytes() []byte
func (*SampleResponse) GetADeepMap ¶
func (x *SampleResponse) GetADeepMap() map[string]*SampleResponse_SampleMessage2
func (*SampleResponse) GetADouble ¶
func (x *SampleResponse) GetADouble() float64
func (*SampleResponse) GetAEnum ¶
func (x *SampleResponse) GetAEnum() SampleResponse_SampleEnum
func (*SampleResponse) GetAEnumList ¶
func (x *SampleResponse) GetAEnumList() []SampleResponse_SampleEnum
func (*SampleResponse) GetAEnumOneof ¶
func (x *SampleResponse) GetAEnumOneof() SampleResponse_SampleEnum
func (*SampleResponse) GetAFixed32 ¶
func (x *SampleResponse) GetAFixed32() uint32
func (*SampleResponse) GetAFixed64 ¶
func (x *SampleResponse) GetAFixed64() uint64
func (*SampleResponse) GetAFloat ¶
func (x *SampleResponse) GetAFloat() float32
func (*SampleResponse) GetAInt32 ¶
func (x *SampleResponse) GetAInt32() int32
func (*SampleResponse) GetAInt64 ¶
func (x *SampleResponse) GetAInt64() int64
func (*SampleResponse) GetAIntList ¶
func (x *SampleResponse) GetAIntList() []int32
func (*SampleResponse) GetAMap ¶
func (x *SampleResponse) GetAMap() map[string]bool
func (*SampleResponse) GetAMessage ¶
func (x *SampleResponse) GetAMessage() *SampleResponse_SampleMessage1
func (*SampleResponse) GetAMessageList ¶
func (x *SampleResponse) GetAMessageList() []*SampleResponse_SampleMessage1
func (*SampleResponse) GetAMessageOneof ¶
func (x *SampleResponse) GetAMessageOneof() *SampleResponse_SampleMessage1
func (*SampleResponse) GetAOneof ¶
func (m *SampleResponse) GetAOneof() isSampleResponse_AOneof
func (*SampleResponse) GetASfixed32 ¶
func (x *SampleResponse) GetASfixed32() int32
func (*SampleResponse) GetASfixed64 ¶
func (x *SampleResponse) GetASfixed64() int64
func (*SampleResponse) GetASint32 ¶
func (x *SampleResponse) GetASint32() int32
func (*SampleResponse) GetASint64 ¶
func (x *SampleResponse) GetASint64() int64
func (*SampleResponse) GetAString ¶
func (x *SampleResponse) GetAString() string
func (*SampleResponse) GetAStringOneof ¶
func (x *SampleResponse) GetAStringOneof() string
func (*SampleResponse) GetAUint32 ¶
func (x *SampleResponse) GetAUint32() uint32
func (*SampleResponse) GetAUint64 ¶
func (x *SampleResponse) GetAUint64() uint64
func (*SampleResponse) ProtoMessage ¶
func (*SampleResponse) ProtoMessage()
func (*SampleResponse) ProtoReflect ¶
func (x *SampleResponse) ProtoReflect() protoreflect.Message
func (*SampleResponse) Reset ¶
func (x *SampleResponse) Reset()
func (*SampleResponse) String ¶
func (x *SampleResponse) String() string
type SampleResponse_AEnumOneof ¶
type SampleResponse_AEnumOneof struct {
AEnumOneof SampleResponse_SampleEnum `protobuf:"varint,24,opt,name=a_enum_oneof,json=aEnumOneof,proto3,enum=exemplar.SampleResponse_SampleEnum,oneof"`
}
type SampleResponse_AMessageOneof ¶
type SampleResponse_AMessageOneof struct {
AMessageOneof *SampleResponse_SampleMessage1 `protobuf:"bytes,25,opt,name=a_message_oneof,json=aMessageOneof,proto3,oneof"`
}
type SampleResponse_AStringOneof ¶
type SampleResponse_AStringOneof struct {
AStringOneof string `protobuf:"bytes,23,opt,name=a_string_oneof,json=aStringOneof,proto3,oneof"`
}
type SampleResponse_SampleEnum ¶
type SampleResponse_SampleEnum int32
Enum
const ( SampleResponse_SAMPLE_ENUM_UNSPECIFIED SampleResponse_SampleEnum = 0 SampleResponse_SAMPLE_ENUM_FIRST SampleResponse_SampleEnum = 1 SampleResponse_SAMPLE_ENUM_SECOND SampleResponse_SampleEnum = 2 )
func (SampleResponse_SampleEnum) Descriptor ¶
func (SampleResponse_SampleEnum) Descriptor() protoreflect.EnumDescriptor
func (SampleResponse_SampleEnum) Enum ¶
func (x SampleResponse_SampleEnum) Enum() *SampleResponse_SampleEnum
func (SampleResponse_SampleEnum) EnumDescriptor
deprecated
func (SampleResponse_SampleEnum) EnumDescriptor() ([]byte, []int)
Deprecated: Use SampleResponse_SampleEnum.Descriptor instead.
func (SampleResponse_SampleEnum) Number ¶
func (x SampleResponse_SampleEnum) Number() protoreflect.EnumNumber
func (SampleResponse_SampleEnum) String ¶
func (x SampleResponse_SampleEnum) String() string
func (SampleResponse_SampleEnum) Type ¶
func (SampleResponse_SampleEnum) Type() protoreflect.EnumType
type SampleResponse_SampleMessage1 ¶
type SampleResponse_SampleMessage1 struct { Field string `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"` Repeat []int32 `protobuf:"varint,2,rep,packed,name=repeat,proto3" json:"repeat,omitempty"` // contains filtered or unexported fields }
Message
func (*SampleResponse_SampleMessage1) Descriptor
deprecated
func (*SampleResponse_SampleMessage1) Descriptor() ([]byte, []int)
Deprecated: Use SampleResponse_SampleMessage1.ProtoReflect.Descriptor instead.
func (*SampleResponse_SampleMessage1) GetField ¶
func (x *SampleResponse_SampleMessage1) GetField() string
func (*SampleResponse_SampleMessage1) GetRepeat ¶
func (x *SampleResponse_SampleMessage1) GetRepeat() []int32
func (*SampleResponse_SampleMessage1) ProtoMessage ¶
func (*SampleResponse_SampleMessage1) ProtoMessage()
func (*SampleResponse_SampleMessage1) ProtoReflect ¶
func (x *SampleResponse_SampleMessage1) ProtoReflect() protoreflect.Message
func (*SampleResponse_SampleMessage1) Reset ¶
func (x *SampleResponse_SampleMessage1) Reset()
func (*SampleResponse_SampleMessage1) String ¶
func (x *SampleResponse_SampleMessage1) String() string
type SampleResponse_SampleMessage2 ¶
type SampleResponse_SampleMessage2 struct { // buf:lint:ignore FIELD_LOWER_SNAKE_CASE Weird_FieldName_1_ string `protobuf:"bytes,1,opt,name=weird_FieldName_1_,json=weirdFieldName1,proto3" json:"weird_FieldName_1_,omitempty"` AStringList []string `protobuf:"bytes,2,rep,name=a_string_list,json=aStringList,proto3" json:"a_string_list,omitempty"` AMsgList []*SampleResponse_SampleMessage1 `protobuf:"bytes,3,rep,name=a_msg_list,json=aMsgList,proto3" json:"a_msg_list,omitempty"` // contains filtered or unexported fields }
func (*SampleResponse_SampleMessage2) Descriptor
deprecated
func (*SampleResponse_SampleMessage2) Descriptor() ([]byte, []int)
Deprecated: Use SampleResponse_SampleMessage2.ProtoReflect.Descriptor instead.
func (*SampleResponse_SampleMessage2) GetAMsgList ¶
func (x *SampleResponse_SampleMessage2) GetAMsgList() []*SampleResponse_SampleMessage1
func (*SampleResponse_SampleMessage2) GetAStringList ¶
func (x *SampleResponse_SampleMessage2) GetAStringList() []string
func (*SampleResponse_SampleMessage2) GetWeird_FieldName_1_ ¶
func (x *SampleResponse_SampleMessage2) GetWeird_FieldName_1_() string
func (*SampleResponse_SampleMessage2) ProtoMessage ¶
func (*SampleResponse_SampleMessage2) ProtoMessage()
func (*SampleResponse_SampleMessage2) ProtoReflect ¶
func (x *SampleResponse_SampleMessage2) ProtoReflect() protoreflect.Message
func (*SampleResponse_SampleMessage2) Reset ¶
func (x *SampleResponse_SampleMessage2) Reset()
func (*SampleResponse_SampleMessage2) String ¶
func (x *SampleResponse_SampleMessage2) String() string
type UnimplementedExemplarServer ¶
type UnimplementedExemplarServer struct { }
UnimplementedExemplarServer must be embedded to have forward compatible implementations.
func (UnimplementedExemplarServer) Sample ¶
func (UnimplementedExemplarServer) Sample(context.Context, *SampleRequest) (*SampleResponse, error)
type UnsafeExemplarServer ¶
type UnsafeExemplarServer interface {
// contains filtered or unexported methods
}
UnsafeExemplarServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ExemplarServer will result in compilation errors.