package v1
import (
protoreflect
protoimpl
reflect
sync
unsafe
)
const (
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type AnyValue struct {
state protoimpl.MessageState `protogen:"open.v1"`
Value isAnyValue_Value `protobuf_oneof:"value"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func ( *AnyValue) () {
* = AnyValue{}
:= &file_opentelemetry_proto_common_v1_common_proto_msgTypes[0]
:= protoimpl.X.MessageStateOf(protoimpl.Pointer())
.StoreMessageInfo()
}
func ( *AnyValue) () string {
return protoimpl.X.MessageStringOf()
}
func (*AnyValue) () {}
func ( *AnyValue) () protoreflect.Message {
:= &file_opentelemetry_proto_common_v1_common_proto_msgTypes[0]
if != nil {
:= protoimpl.X.MessageStateOf(protoimpl.Pointer())
if .LoadMessageInfo() == nil {
.StoreMessageInfo()
}
return
}
return .MessageOf()
}
func (*AnyValue) () ([]byte, []int) {
return file_opentelemetry_proto_common_v1_common_proto_rawDescGZIP(), []int{0}
}
func ( *AnyValue) () isAnyValue_Value {
if != nil {
return .Value
}
return nil
}
func ( *AnyValue) () string {
if != nil {
if , := .Value.(*AnyValue_StringValue); {
return .StringValue
}
}
return ""
}
func ( *AnyValue) () bool {
if != nil {
if , := .Value.(*AnyValue_BoolValue); {
return .BoolValue
}
}
return false
}
func ( *AnyValue) () int64 {
if != nil {
if , := .Value.(*AnyValue_IntValue); {
return .IntValue
}
}
return 0
}
func ( *AnyValue) () float64 {
if != nil {
if , := .Value.(*AnyValue_DoubleValue); {
return .DoubleValue
}
}
return 0
}
func ( *AnyValue) () *ArrayValue {
if != nil {
if , := .Value.(*AnyValue_ArrayValue); {
return .ArrayValue
}
}
return nil
}
func ( *AnyValue) () *KeyValueList {
if != nil {
if , := .Value.(*AnyValue_KvlistValue); {
return .KvlistValue
}
}
return nil
}
func ( *AnyValue) () []byte {
if != nil {
if , := .Value.(*AnyValue_BytesValue); {
return .BytesValue
}
}
return nil
}
func ( *AnyValue) () int32 {
if != nil {
if , := .Value.(*AnyValue_StringValueStrindex); {
return .StringValueStrindex
}
}
return 0
}
type isAnyValue_Value interface {
isAnyValue_Value()
}
type AnyValue_StringValue struct {
StringValue string `protobuf:"bytes,1,opt,name=string_value,json=stringValue,proto3,oneof"`
}
type AnyValue_BoolValue struct {
BoolValue bool `protobuf:"varint,2,opt,name=bool_value,json=boolValue,proto3,oneof"`
}
type AnyValue_IntValue struct {
IntValue int64 `protobuf:"varint,3,opt,name=int_value,json=intValue,proto3,oneof"`
}
type AnyValue_DoubleValue struct {
DoubleValue float64 `protobuf:"fixed64,4,opt,name=double_value,json=doubleValue,proto3,oneof"`
}
type AnyValue_ArrayValue struct {
ArrayValue *ArrayValue `protobuf:"bytes,5,opt,name=array_value,json=arrayValue,proto3,oneof"`
}
type AnyValue_KvlistValue struct {
KvlistValue *KeyValueList `protobuf:"bytes,6,opt,name=kvlist_value,json=kvlistValue,proto3,oneof"`
}
type AnyValue_BytesValue struct {
BytesValue []byte `protobuf:"bytes,7,opt,name=bytes_value,json=bytesValue,proto3,oneof"`
}
type AnyValue_StringValueStrindex struct {
StringValueStrindex int32 `protobuf:"varint,8,opt,name=string_value_strindex,json=stringValueStrindex,proto3,oneof"`
}
func (*AnyValue_StringValue) () {}
func (*AnyValue_BoolValue) () {}
func (*AnyValue_IntValue) () {}
func (*AnyValue_DoubleValue) () {}
func (*AnyValue_ArrayValue) () {}
func (*AnyValue_KvlistValue) () {}
func (*AnyValue_BytesValue) () {}
func (*AnyValue_StringValueStrindex) () {}
type ArrayValue struct {
state protoimpl.MessageState `protogen:"open.v1"`
Values []*AnyValue `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func ( *ArrayValue) () {
* = ArrayValue{}
:= &file_opentelemetry_proto_common_v1_common_proto_msgTypes[1]
:= protoimpl.X.MessageStateOf(protoimpl.Pointer())
.StoreMessageInfo()
}
func ( *ArrayValue) () string {
return protoimpl.X.MessageStringOf()
}
func (*ArrayValue) () {}
func ( *ArrayValue) () protoreflect.Message {
:= &file_opentelemetry_proto_common_v1_common_proto_msgTypes[1]
if != nil {
:= protoimpl.X.MessageStateOf(protoimpl.Pointer())
if .LoadMessageInfo() == nil {
.StoreMessageInfo()
}
return
}
return .MessageOf()
}
func (*ArrayValue) () ([]byte, []int) {
return file_opentelemetry_proto_common_v1_common_proto_rawDescGZIP(), []int{1}
}
func ( *ArrayValue) () []*AnyValue {
if != nil {
return .Values
}
return nil
}
type KeyValueList struct {
state protoimpl.MessageState `protogen:"open.v1"`
Values []*KeyValue `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func ( *KeyValueList) () {
* = KeyValueList{}
:= &file_opentelemetry_proto_common_v1_common_proto_msgTypes[2]
:= protoimpl.X.MessageStateOf(protoimpl.Pointer())
.StoreMessageInfo()
}
func ( *KeyValueList) () string {
return protoimpl.X.MessageStringOf()
}
func (*KeyValueList) () {}
func ( *KeyValueList) () protoreflect.Message {
:= &file_opentelemetry_proto_common_v1_common_proto_msgTypes[2]
if != nil {
:= protoimpl.X.MessageStateOf(protoimpl.Pointer())
if .LoadMessageInfo() == nil {
.StoreMessageInfo()
}
return
}
return .MessageOf()
}
func (*KeyValueList) () ([]byte, []int) {
return file_opentelemetry_proto_common_v1_common_proto_rawDescGZIP(), []int{2}
}
func ( *KeyValueList) () []*KeyValue {
if != nil {
return .Values
}
return nil
}
type KeyValue struct {
state protoimpl.MessageState `protogen:"open.v1"`
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
Value *AnyValue `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
KeyStrindex int32 `protobuf:"varint,3,opt,name=key_strindex,json=keyStrindex,proto3" json:"key_strindex,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func ( *KeyValue) () {
* = KeyValue{}
:= &file_opentelemetry_proto_common_v1_common_proto_msgTypes[3]
:= protoimpl.X.MessageStateOf(protoimpl.Pointer())
.StoreMessageInfo()
}
func ( *KeyValue) () string {
return protoimpl.X.MessageStringOf()
}
func (*KeyValue) () {}
func ( *KeyValue) () protoreflect.Message {
:= &file_opentelemetry_proto_common_v1_common_proto_msgTypes[3]
if != nil {
:= protoimpl.X.MessageStateOf(protoimpl.Pointer())
if .LoadMessageInfo() == nil {
.StoreMessageInfo()
}
return
}
return .MessageOf()
}
func (*KeyValue) () ([]byte, []int) {
return file_opentelemetry_proto_common_v1_common_proto_rawDescGZIP(), []int{3}
}
func ( *KeyValue) () string {
if != nil {
return .Key
}
return ""
}
func ( *KeyValue) () *AnyValue {
if != nil {
return .Value
}
return nil
}
func ( *KeyValue) () int32 {
if != nil {
return .KeyStrindex
}
return 0
}
type InstrumentationScope struct {
state protoimpl.MessageState `protogen:"open.v1"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
Attributes []*KeyValue `protobuf:"bytes,3,rep,name=attributes,proto3" json:"attributes,omitempty"`
DroppedAttributesCount uint32 `protobuf:"varint,4,opt,name=dropped_attributes_count,json=droppedAttributesCount,proto3" json:"dropped_attributes_count,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func ( *InstrumentationScope) () {
* = InstrumentationScope{}
:= &file_opentelemetry_proto_common_v1_common_proto_msgTypes[4]
:= protoimpl.X.MessageStateOf(protoimpl.Pointer())
.StoreMessageInfo()
}
func ( *InstrumentationScope) () string {
return protoimpl.X.MessageStringOf()
}
func (*InstrumentationScope) () {}
func ( *InstrumentationScope) () protoreflect.Message {
:= &file_opentelemetry_proto_common_v1_common_proto_msgTypes[4]
if != nil {
:= protoimpl.X.MessageStateOf(protoimpl.Pointer())
if .LoadMessageInfo() == nil {
.StoreMessageInfo()
}
return
}
return .MessageOf()
}
func (*InstrumentationScope) () ([]byte, []int) {
return file_opentelemetry_proto_common_v1_common_proto_rawDescGZIP(), []int{4}
}
func ( *InstrumentationScope) () string {
if != nil {
return .Name
}
return ""
}
func ( *InstrumentationScope) () string {
if != nil {
return .Version
}
return ""
}
func ( *InstrumentationScope) () []*KeyValue {
if != nil {
return .Attributes
}
return nil
}
func ( *InstrumentationScope) () uint32 {
if != nil {
return .DroppedAttributesCount
}
return 0
}
type EntityRef struct {
state protoimpl.MessageState `protogen:"open.v1"`
SchemaUrl string `protobuf:"bytes,1,opt,name=schema_url,json=schemaUrl,proto3" json:"schema_url,omitempty"`
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
IdKeys []string `protobuf:"bytes,3,rep,name=id_keys,json=idKeys,proto3" json:"id_keys,omitempty"`
DescriptionKeys []string `protobuf:"bytes,4,rep,name=description_keys,json=descriptionKeys,proto3" json:"description_keys,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func ( *EntityRef) () {
* = EntityRef{}
:= &file_opentelemetry_proto_common_v1_common_proto_msgTypes[5]
:= protoimpl.X.MessageStateOf(protoimpl.Pointer())
.StoreMessageInfo()
}
func ( *EntityRef) () string {
return protoimpl.X.MessageStringOf()
}
func (*EntityRef) () {}
func ( *EntityRef) () protoreflect.Message {
:= &file_opentelemetry_proto_common_v1_common_proto_msgTypes[5]
if != nil {
:= protoimpl.X.MessageStateOf(protoimpl.Pointer())
if .LoadMessageInfo() == nil {
.StoreMessageInfo()
}
return
}
return .MessageOf()
}
func (*EntityRef) () ([]byte, []int) {
return file_opentelemetry_proto_common_v1_common_proto_rawDescGZIP(), []int{5}
}
func ( *EntityRef) () string {
if != nil {
return .SchemaUrl
}
return ""
}
func ( *EntityRef) () string {
if != nil {
return .Type
}
return ""
}
func ( *EntityRef) () []string {
if != nil {
return .IdKeys
}
return nil
}
func ( *EntityRef) () []string {
if != nil {
return .DescriptionKeys
}
return nil
}
var File_opentelemetry_proto_common_v1_common_proto protoreflect.FileDescriptor
const file_opentelemetry_proto_common_v1_common_proto_rawDesc = "" +
"\n" +
"*opentelemetry/proto/common/v1/common.proto\x12\x1dopentelemetry.proto.common.v1\"\x96\x03\n" +
"\bAnyValue\x12#\n" +
"\fstring_value\x18\x01 \x01(\tH\x00R\vstringValue\x12\x1f\n" +
"\n" +
"bool_value\x18\x02 \x01(\bH\x00R\tboolValue\x12\x1d\n" +
"\tint_value\x18\x03 \x01(\x03H\x00R\bintValue\x12#\n" +
"\fdouble_value\x18\x04 \x01(\x01H\x00R\vdoubleValue\x12L\n" +
"\varray_value\x18\x05 \x01(\v2).opentelemetry.proto.common.v1.ArrayValueH\x00R\n" +
"arrayValue\x12P\n" +
"\fkvlist_value\x18\x06 \x01(\v2+.opentelemetry.proto.common.v1.KeyValueListH\x00R\vkvlistValue\x12!\n" +
"\vbytes_value\x18\a \x01(\fH\x00R\n" +
"bytesValue\x124\n" +
"\x15string_value_strindex\x18\b \x01(\x05H\x00R\x13stringValueStrindexB\a\n" +
"\x05value\"M\n" +
"\n" +
"ArrayValue\x12?\n" +
"\x06values\x18\x01 \x03(\v2'.opentelemetry.proto.common.v1.AnyValueR\x06values\"O\n" +
"\fKeyValueList\x12?\n" +
"\x06values\x18\x01 \x03(\v2'.opentelemetry.proto.common.v1.KeyValueR\x06values\"~\n" +
"\bKeyValue\x12\x10\n" +
"\x03key\x18\x01 \x01(\tR\x03key\x12=\n" +
"\x05value\x18\x02 \x01(\v2'.opentelemetry.proto.common.v1.AnyValueR\x05value\x12!\n" +
"\fkey_strindex\x18\x03 \x01(\x05R\vkeyStrindex\"\xc7\x01\n" +
"\x14InstrumentationScope\x12\x12\n" +
"\x04name\x18\x01 \x01(\tR\x04name\x12\x18\n" +
"\aversion\x18\x02 \x01(\tR\aversion\x12G\n" +
"\n" +
"attributes\x18\x03 \x03(\v2'.opentelemetry.proto.common.v1.KeyValueR\n" +
"attributes\x128\n" +
"\x18dropped_attributes_count\x18\x04 \x01(\rR\x16droppedAttributesCount\"\x82\x01\n" +
"\tEntityRef\x12\x1d\n" +
"\n" +
"schema_url\x18\x01 \x01(\tR\tschemaUrl\x12\x12\n" +
"\x04type\x18\x02 \x01(\tR\x04type\x12\x17\n" +
"\aid_keys\x18\x03 \x03(\tR\x06idKeys\x12)\n" +
"\x10description_keys\x18\x04 \x03(\tR\x0fdescriptionKeysB{\n" +
" io.opentelemetry.proto.common.v1B\vCommonProtoP\x01Z(go.opentelemetry.io/proto/otlp/common/v1\xaa\x02\x1dOpenTelemetry.Proto.Common.V1b\x06proto3"
var (
file_opentelemetry_proto_common_v1_common_proto_rawDescOnce sync.Once
file_opentelemetry_proto_common_v1_common_proto_rawDescData []byte
)
func () []byte {
file_opentelemetry_proto_common_v1_common_proto_rawDescOnce.Do(func() {
file_opentelemetry_proto_common_v1_common_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_opentelemetry_proto_common_v1_common_proto_rawDesc), len(file_opentelemetry_proto_common_v1_common_proto_rawDesc)))
})
return file_opentelemetry_proto_common_v1_common_proto_rawDescData
}
var file_opentelemetry_proto_common_v1_common_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
var file_opentelemetry_proto_common_v1_common_proto_goTypes = []any{
(*AnyValue)(nil),
(*ArrayValue)(nil),
(*KeyValueList)(nil),
(*KeyValue)(nil),
(*InstrumentationScope)(nil),
(*EntityRef)(nil),
}
var file_opentelemetry_proto_common_v1_common_proto_depIdxs = []int32{
1,
2,
0,
3,
0,
3,
6,
6,
6,
6,
0,
}
func () { file_opentelemetry_proto_common_v1_common_proto_init() }
func () {
if File_opentelemetry_proto_common_v1_common_proto != nil {
return
}
file_opentelemetry_proto_common_v1_common_proto_msgTypes[0].OneofWrappers = []any{
(*AnyValue_StringValue)(nil),
(*AnyValue_BoolValue)(nil),
(*AnyValue_IntValue)(nil),
(*AnyValue_DoubleValue)(nil),
(*AnyValue_ArrayValue)(nil),
(*AnyValue_KvlistValue)(nil),
(*AnyValue_BytesValue)(nil),
(*AnyValue_StringValueStrindex)(nil),
}
type struct{}
:= protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf({}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_opentelemetry_proto_common_v1_common_proto_rawDesc), len(file_opentelemetry_proto_common_v1_common_proto_rawDesc)),
NumEnums: 0,
NumMessages: 6,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_opentelemetry_proto_common_v1_common_proto_goTypes,
DependencyIndexes: file_opentelemetry_proto_common_v1_common_proto_depIdxs,
MessageInfos: file_opentelemetry_proto_common_v1_common_proto_msgTypes,
}.Build()
File_opentelemetry_proto_common_v1_common_proto = .File
file_opentelemetry_proto_common_v1_common_proto_goTypes = nil
file_opentelemetry_proto_common_v1_common_proto_depIdxs = nil
}