exemplar

package
v0.0.36 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
var Exemplar_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "exemplar.Exemplar",
	HandlerType: (*ExemplarServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Sample",
			Handler:    _Exemplar_Sample_Handler,
		},
		{
			MethodName: "WellKnown",
			Handler:    _Exemplar_WellKnown_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)

View Source
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)
	WellKnown(ctx context.Context, in *SampleRequest, opts ...grpc.CallOption) (*WellKnownSample, 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)
	WellKnown(context.Context, *SampleRequest) (*WellKnownSample, 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"`
	// Recursive
	Recursive *SampleResponse `protobuf:"bytes,26,opt,name=recursive,proto3" json:"recursive,omitempty"`
	// 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 (*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 (*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) GetRecursive added in v0.0.33

func (x *SampleResponse) GetRecursive() *SampleResponse

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

func (SampleResponse_SampleEnum) EnumDescriptor deprecated

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

Deprecated: Use SampleResponse_SampleEnum.Descriptor instead.

func (SampleResponse_SampleEnum) Number

func (SampleResponse_SampleEnum) String

func (x SampleResponse_SampleEnum) String() string

func (SampleResponse_SampleEnum) Type

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 (*SampleResponse_SampleMessage1) Reset

func (x *SampleResponse_SampleMessage1) Reset()

func (*SampleResponse_SampleMessage1) 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 (*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 (*SampleResponse_SampleMessage2) Reset

func (x *SampleResponse_SampleMessage2) Reset()

func (*SampleResponse_SampleMessage2) String

type UnimplementedExemplarServer

type UnimplementedExemplarServer struct {
}

UnimplementedExemplarServer must be embedded to have forward compatible implementations.

func (UnimplementedExemplarServer) Sample

func (UnimplementedExemplarServer) WellKnown added in v0.0.20

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.

type WellKnownSample added in v0.0.20

type WellKnownSample struct {
	Any           *anypb.Any                     `protobuf:"bytes,1,opt,name=any,proto3" json:"any,omitempty"`
	Api           *apipb.Api                     `protobuf:"bytes,2,opt,name=api,proto3" json:"api,omitempty"`
	BoolValue     *wrapperspb.BoolValue          `protobuf:"bytes,3,opt,name=bool_value,json=boolValue,proto3" json:"bool_value,omitempty"`
	BytesValue    *wrapperspb.BytesValue         `protobuf:"bytes,4,opt,name=bytes_value,json=bytesValue,proto3" json:"bytes_value,omitempty"`
	DoubleValue   *wrapperspb.DoubleValue        `protobuf:"bytes,5,opt,name=double_value,json=doubleValue,proto3" json:"double_value,omitempty"`
	Duration      *durationpb.Duration           `protobuf:"bytes,6,opt,name=duration,proto3" json:"duration,omitempty"`
	Empty         *emptypb.Empty                 `protobuf:"bytes,7,opt,name=empty,proto3" json:"empty,omitempty"`
	AnEnum        *typepb.Enum                   `protobuf:"bytes,8,opt,name=an_enum,json=anEnum,proto3" json:"an_enum,omitempty"`
	EnumValue     *typepb.EnumValue              `protobuf:"bytes,9,opt,name=enum_value,json=enumValue,proto3" json:"enum_value,omitempty"`
	Field         *typepb.Field                  `protobuf:"bytes,10,opt,name=field,proto3" json:"field,omitempty"`
	FieldMask     *fieldmaskpb.FieldMask         `protobuf:"bytes,11,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"`
	FloatValue    *wrapperspb.FloatValue         `protobuf:"bytes,12,opt,name=float_value,json=floatValue,proto3" json:"float_value,omitempty"`
	Int32Value    *wrapperspb.Int32Value         `protobuf:"bytes,13,opt,name=int32_value,json=int32Value,proto3" json:"int32_value,omitempty"`
	Int64Value    *wrapperspb.Int64Value         `protobuf:"bytes,14,opt,name=int64_value,json=int64Value,proto3" json:"int64_value,omitempty"`
	ListValue     *structpb.ListValue            `protobuf:"bytes,15,opt,name=list_value,json=listValue,proto3" json:"list_value,omitempty"`
	Method        *apipb.Method                  `protobuf:"bytes,16,opt,name=method,proto3" json:"method,omitempty"`
	Mixin         *apipb.Mixin                   `protobuf:"bytes,17,opt,name=mixin,proto3" json:"mixin,omitempty"`
	NullValue     structpb.NullValue             `protobuf:"varint,18,opt,name=null_value,json=nullValue,proto3,enum=google.protobuf.NullValue" json:"null_value,omitempty"`
	AnOption      *typepb.Option                 `protobuf:"bytes,19,opt,name=an_option,json=anOption,proto3" json:"an_option,omitempty"`
	SourceContext *sourcecontextpb.SourceContext `protobuf:"bytes,20,opt,name=source_context,json=sourceContext,proto3" json:"source_context,omitempty"`
	StringValue   *wrapperspb.StringValue        `protobuf:"bytes,21,opt,name=string_value,json=stringValue,proto3" json:"string_value,omitempty"`
	Struct        *structpb.Struct               `protobuf:"bytes,22,opt,name=struct,proto3" json:"struct,omitempty"`
	Timestamp     *timestamppb.Timestamp         `protobuf:"bytes,23,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Type          *typepb.Type                   `protobuf:"bytes,24,opt,name=type,proto3" json:"type,omitempty"`
	Uint32Value   *wrapperspb.UInt32Value        `protobuf:"bytes,25,opt,name=uint32_value,json=uint32Value,proto3" json:"uint32_value,omitempty"`
	Uint64Value   *wrapperspb.UInt64Value        `protobuf:"bytes,26,opt,name=uint64_value,json=uint64Value,proto3" json:"uint64_value,omitempty"`
	Value         *structpb.Value                `protobuf:"bytes,27,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*WellKnownSample) Descriptor deprecated added in v0.0.20

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

Deprecated: Use WellKnownSample.ProtoReflect.Descriptor instead.

func (*WellKnownSample) GetAnEnum added in v0.0.20

func (x *WellKnownSample) GetAnEnum() *typepb.Enum

func (*WellKnownSample) GetAnOption added in v0.0.20

func (x *WellKnownSample) GetAnOption() *typepb.Option

func (*WellKnownSample) GetAny added in v0.0.20

func (x *WellKnownSample) GetAny() *anypb.Any

func (*WellKnownSample) GetApi added in v0.0.20

func (x *WellKnownSample) GetApi() *apipb.Api

func (*WellKnownSample) GetBoolValue added in v0.0.20

func (x *WellKnownSample) GetBoolValue() *wrapperspb.BoolValue

func (*WellKnownSample) GetBytesValue added in v0.0.20

func (x *WellKnownSample) GetBytesValue() *wrapperspb.BytesValue

func (*WellKnownSample) GetDoubleValue added in v0.0.20

func (x *WellKnownSample) GetDoubleValue() *wrapperspb.DoubleValue

func (*WellKnownSample) GetDuration added in v0.0.20

func (x *WellKnownSample) GetDuration() *durationpb.Duration

func (*WellKnownSample) GetEmpty added in v0.0.20

func (x *WellKnownSample) GetEmpty() *emptypb.Empty

func (*WellKnownSample) GetEnumValue added in v0.0.20

func (x *WellKnownSample) GetEnumValue() *typepb.EnumValue

func (*WellKnownSample) GetField added in v0.0.20

func (x *WellKnownSample) GetField() *typepb.Field

func (*WellKnownSample) GetFieldMask added in v0.0.20

func (x *WellKnownSample) GetFieldMask() *fieldmaskpb.FieldMask

func (*WellKnownSample) GetFloatValue added in v0.0.20

func (x *WellKnownSample) GetFloatValue() *wrapperspb.FloatValue

func (*WellKnownSample) GetInt32Value added in v0.0.20

func (x *WellKnownSample) GetInt32Value() *wrapperspb.Int32Value

func (*WellKnownSample) GetInt64Value added in v0.0.20

func (x *WellKnownSample) GetInt64Value() *wrapperspb.Int64Value

func (*WellKnownSample) GetListValue added in v0.0.20

func (x *WellKnownSample) GetListValue() *structpb.ListValue

func (*WellKnownSample) GetMethod added in v0.0.20

func (x *WellKnownSample) GetMethod() *apipb.Method

func (*WellKnownSample) GetMixin added in v0.0.20

func (x *WellKnownSample) GetMixin() *apipb.Mixin

func (*WellKnownSample) GetNullValue added in v0.0.20

func (x *WellKnownSample) GetNullValue() structpb.NullValue

func (*WellKnownSample) GetSourceContext added in v0.0.20

func (x *WellKnownSample) GetSourceContext() *sourcecontextpb.SourceContext

func (*WellKnownSample) GetStringValue added in v0.0.20

func (x *WellKnownSample) GetStringValue() *wrapperspb.StringValue

func (*WellKnownSample) GetStruct added in v0.0.20

func (x *WellKnownSample) GetStruct() *structpb.Struct

func (*WellKnownSample) GetTimestamp added in v0.0.20

func (x *WellKnownSample) GetTimestamp() *timestamppb.Timestamp

func (*WellKnownSample) GetType added in v0.0.20

func (x *WellKnownSample) GetType() *typepb.Type

func (*WellKnownSample) GetUint32Value added in v0.0.20

func (x *WellKnownSample) GetUint32Value() *wrapperspb.UInt32Value

func (*WellKnownSample) GetUint64Value added in v0.0.20

func (x *WellKnownSample) GetUint64Value() *wrapperspb.UInt64Value

func (*WellKnownSample) GetValue added in v0.0.20

func (x *WellKnownSample) GetValue() *structpb.Value

func (*WellKnownSample) ProtoMessage added in v0.0.20

func (*WellKnownSample) ProtoMessage()

func (*WellKnownSample) ProtoReflect added in v0.0.20

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

func (*WellKnownSample) Reset added in v0.0.20

func (x *WellKnownSample) Reset()

func (*WellKnownSample) String added in v0.0.20

func (x *WellKnownSample) String() string

Jump to

Keyboard shortcuts

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