Back to godoc.org
go.opentelemetry.io/collector/internal/data/opentelemetry-proto-gen/common/v1

package v1

v0.4.0
Latest Go to latest
Published: Jun 16, 2020 | License: Apache-2.0 | Module: go.opentelemetry.io/collector

Overview

Package v1 is a generated protocol buffer package.

It is generated from these files:

opentelemetry/proto/common/v1/common.proto

It has these top-level messages:

AttributeKeyValue
StringKeyValue
InstrumentationLibrary

Index

Variables

var (
	ErrInvalidLengthCommon = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowCommon   = fmt.Errorf("proto: integer overflow")
)
var AttributeKeyValue_ValueType_name = map[int32]string{
	0: "STRING",
	1: "INT",
	2: "DOUBLE",
	3: "BOOL",
}
var AttributeKeyValue_ValueType_value = map[string]int32{
	"STRING": 0,
	"INT":    1,
	"DOUBLE": 2,
	"BOOL":   3,
}

type AttributeKeyValue

type AttributeKeyValue struct {
	// key part of the key-value pair.
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// type of the value.
	Type        AttributeKeyValue_ValueType `protobuf:"varint,2,opt,name=type,proto3,enum=opentelemetry.proto.common.v1.AttributeKeyValue_ValueType" json:"type,omitempty"`
	StringValue string                      `protobuf:"bytes,3,opt,name=string_value,json=stringValue,proto3" json:"string_value,omitempty"`
	IntValue    int64                       `protobuf:"varint,4,opt,name=int_value,json=intValue,proto3" json:"int_value,omitempty"`
	DoubleValue float64                     `protobuf:"fixed64,5,opt,name=double_value,json=doubleValue,proto3" json:"double_value,omitempty"`
	BoolValue   bool                        `protobuf:"varint,6,opt,name=bool_value,json=boolValue,proto3" json:"bool_value,omitempty"`
}

AttributeKeyValue is a key-value pair that is used to store Span attributes, Link attributes, etc.

func (*AttributeKeyValue) Descriptor

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

func (*AttributeKeyValue) GetBoolValue

func (m *AttributeKeyValue) GetBoolValue() bool

func (*AttributeKeyValue) GetDoubleValue

func (m *AttributeKeyValue) GetDoubleValue() float64

func (*AttributeKeyValue) GetIntValue

func (m *AttributeKeyValue) GetIntValue() int64

func (*AttributeKeyValue) GetKey

func (m *AttributeKeyValue) GetKey() string

func (*AttributeKeyValue) GetStringValue

func (m *AttributeKeyValue) GetStringValue() string

func (*AttributeKeyValue) GetType

func (m *AttributeKeyValue) GetType() AttributeKeyValue_ValueType

func (*AttributeKeyValue) Marshal

func (m *AttributeKeyValue) Marshal() (dAtA []byte, err error)

func (*AttributeKeyValue) MarshalTo

func (m *AttributeKeyValue) MarshalTo(dAtA []byte) (int, error)

func (*AttributeKeyValue) ProtoMessage

func (*AttributeKeyValue) ProtoMessage()

func (*AttributeKeyValue) Reset

func (m *AttributeKeyValue) Reset()

func (*AttributeKeyValue) Size

func (m *AttributeKeyValue) Size() (n int)

func (*AttributeKeyValue) String

func (m *AttributeKeyValue) String() string

func (*AttributeKeyValue) Unmarshal

func (m *AttributeKeyValue) Unmarshal(dAtA []byte) error

type AttributeKeyValue_ValueType

type AttributeKeyValue_ValueType int32

ValueType is the enumeration of possible types that value can have.

const (
	AttributeKeyValue_STRING AttributeKeyValue_ValueType = 0
	AttributeKeyValue_INT    AttributeKeyValue_ValueType = 1
	AttributeKeyValue_DOUBLE AttributeKeyValue_ValueType = 2
	AttributeKeyValue_BOOL   AttributeKeyValue_ValueType = 3
)

func (AttributeKeyValue_ValueType) EnumDescriptor

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

func (AttributeKeyValue_ValueType) String

func (x AttributeKeyValue_ValueType) String() string

type InstrumentationLibrary

type InstrumentationLibrary struct {
	Name    string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
}

InstrumentationLibrary is a message representing the instrumentation library information such as the fully qualified name and version.

func (*InstrumentationLibrary) Descriptor

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

func (*InstrumentationLibrary) GetName

func (m *InstrumentationLibrary) GetName() string

func (*InstrumentationLibrary) GetVersion

func (m *InstrumentationLibrary) GetVersion() string

func (*InstrumentationLibrary) Marshal

func (m *InstrumentationLibrary) Marshal() (dAtA []byte, err error)

func (*InstrumentationLibrary) MarshalTo

func (m *InstrumentationLibrary) MarshalTo(dAtA []byte) (int, error)

func (*InstrumentationLibrary) ProtoMessage

func (*InstrumentationLibrary) ProtoMessage()

func (*InstrumentationLibrary) Reset

func (m *InstrumentationLibrary) Reset()

func (*InstrumentationLibrary) Size

func (m *InstrumentationLibrary) Size() (n int)

func (*InstrumentationLibrary) String

func (m *InstrumentationLibrary) String() string

func (*InstrumentationLibrary) Unmarshal

func (m *InstrumentationLibrary) Unmarshal(dAtA []byte) error

type StringKeyValue

type StringKeyValue struct {
	Key   string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
}

StringKeyValue is a pair of key/value strings. This is the simpler (and faster) version of AttributeKeyValue that only supports string values.

func (*StringKeyValue) Descriptor

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

func (*StringKeyValue) GetKey

func (m *StringKeyValue) GetKey() string

func (*StringKeyValue) GetValue

func (m *StringKeyValue) GetValue() string

func (*StringKeyValue) Marshal

func (m *StringKeyValue) Marshal() (dAtA []byte, err error)

func (*StringKeyValue) MarshalTo

func (m *StringKeyValue) MarshalTo(dAtA []byte) (int, error)

func (*StringKeyValue) ProtoMessage

func (*StringKeyValue) ProtoMessage()

func (*StringKeyValue) Reset

func (m *StringKeyValue) Reset()

func (*StringKeyValue) Size

func (m *StringKeyValue) Size() (n int)

func (*StringKeyValue) String

func (m *StringKeyValue) String() string

func (*StringKeyValue) Unmarshal

func (m *StringKeyValue) Unmarshal(dAtA []byte) error
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
f or F : Jump to identifier