| 1 |
// Copyright 2019, OpenTelemetry Authors |
| 2 |
// |
| 3 |
// Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 |
// you may not use this file except in compliance with the License. |
| 5 |
// You may obtain a copy of the License at |
| 6 |
// |
| 7 |
// http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
// |
| 9 |
// Unless required by applicable law or agreed to in writing, software |
| 10 |
// distributed under the License is distributed on an "AS IS" BASIS, |
| 11 |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 |
// See the License for the specific language governing permissions and |
| 13 |
// limitations under the License. |
| 14 |
|
| 15 |
// Code generated by protoc-gen-go. DO NOT EDIT. |
| 16 |
// versions: |
| 17 |
// protoc-gen-go v1.26.0 |
| 18 |
// protoc v3.21.6 |
| 19 |
// source: opentelemetry/proto/common/v1/common.proto |
| 20 |
|
| 21 |
package v1 |
| 22 |
|
| 23 |
import ( |
| 24 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 25 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 26 |
reflect "reflect" |
| 27 |
sync "sync" |
| 28 |
) |
| 29 |
|
| 30 |
const ( |
| 31 |
// Verify that this generated code is sufficiently up-to-date. |
| 32 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 33 |
// Verify that runtime/protoimpl is sufficiently up-to-date. |
| 34 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 35 |
) |
| 36 |
|
| 37 |
// Represents any type of attribute value. AnyValue may contain a |
| 38 |
// primitive value such as a string or integer or it may contain an arbitrary nested |
| 39 |
// object containing arrays, key-value lists and primitives. |
| 40 |
type AnyValue struct { |
| 41 |
state protoimpl.MessageState |
| 42 |
sizeCache protoimpl.SizeCache |
| 43 |
unknownFields protoimpl.UnknownFields |
| 44 |
|
| 45 |
// The value is one of the listed fields. It is valid for all values to be unspecified |
| 46 |
// in which case this AnyValue is considered to be "empty". |
| 47 |
// |
| 48 |
// Types that are assignable to Value: |
| 49 |
// *AnyValue_StringValue |
| 50 |
// *AnyValue_BoolValue |
| 51 |
// *AnyValue_IntValue |
| 52 |
// *AnyValue_DoubleValue |
| 53 |
// *AnyValue_ArrayValue |
| 54 |
// *AnyValue_KvlistValue |
| 55 |
// *AnyValue_BytesValue |
| 56 |
// *AnyValue_StringValueStrindex |
| 57 |
Value isAnyValue_Value `protobuf_oneof:"value"` |
| 58 |
} |
| 59 |
|
| 60 |
func (x *AnyValue) Reset() { |
| 61 |
*x = AnyValue{} |
| 62 |
if protoimpl.UnsafeEnabled { |
| 63 |
mi := &file_opentelemetry_proto_common_v1_common_proto_msgTypes[0] |
| 64 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 65 |
ms.StoreMessageInfo(mi) |
| 66 |
} |
| 67 |
} |
| 68 |
|
| 69 |
func (x *AnyValue) String() string { |
| 70 |
return protoimpl.X.MessageStringOf(x) |
| 71 |
} |
| 72 |
|
| 73 |
func (*AnyValue) ProtoMessage() {} |
| 74 |
|
| 75 |
func (x *AnyValue) ProtoReflect() protoreflect.Message { |
| 76 |
mi := &file_opentelemetry_proto_common_v1_common_proto_msgTypes[0] |
| 77 |
if protoimpl.UnsafeEnabled && x != nil { |
| 78 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 79 |
if ms.LoadMessageInfo() == nil { |
| 80 |
ms.StoreMessageInfo(mi) |
| 81 |
} |
| 82 |
return ms |
| 83 |
} |
| 84 |
return mi.MessageOf(x) |
| 85 |
} |
| 86 |
|
| 87 |
// Deprecated: Use AnyValue.ProtoReflect.Descriptor instead. |
| 88 |
func (*AnyValue) Descriptor() ([]byte, []int) { |
| 89 |
return file_opentelemetry_proto_common_v1_common_proto_rawDescGZIP(), []int{0} |
| 90 |
} |
| 91 |
|
| 92 |
func (m *AnyValue) GetValue() isAnyValue_Value { |
| 93 |
if m != nil { |
| 94 |
return m.Value |
| 95 |
} |
| 96 |
return nil |
| 97 |
} |
| 98 |
|
| 99 |
func (x *AnyValue) GetStringValue() string { |
| 100 |
if x, ok := x.GetValue().(*AnyValue_StringValue); ok { |
| 101 |
return x.StringValue |
| 102 |
} |
| 103 |
return "" |
| 104 |
} |
| 105 |
|
| 106 |
func (x *AnyValue) GetBoolValue() bool { |
| 107 |
if x, ok := x.GetValue().(*AnyValue_BoolValue); ok { |
| 108 |
return x.BoolValue |
| 109 |
} |
| 110 |
return false |
| 111 |
} |
| 112 |
|
| 113 |
func (x *AnyValue) GetIntValue() int64 { |
| 114 |
if x, ok := x.GetValue().(*AnyValue_IntValue); ok { |
| 115 |
return x.IntValue |
| 116 |
} |
| 117 |
return 0 |
| 118 |
} |
| 119 |
|
| 120 |
func (x *AnyValue) GetDoubleValue() float64 { |
| 121 |
if x, ok := x.GetValue().(*AnyValue_DoubleValue); ok { |
| 122 |
return x.DoubleValue |
| 123 |
} |
| 124 |
return 0 |
| 125 |
} |
| 126 |
|
| 127 |
func (x *AnyValue) GetArrayValue() *ArrayValue { |
| 128 |
if x, ok := x.GetValue().(*AnyValue_ArrayValue); ok { |
| 129 |
return x.ArrayValue |
| 130 |
} |
| 131 |
return nil |
| 132 |
} |
| 133 |
|
| 134 |
func (x *AnyValue) GetKvlistValue() *KeyValueList { |
| 135 |
if x, ok := x.GetValue().(*AnyValue_KvlistValue); ok { |
| 136 |
return x.KvlistValue |
| 137 |
} |
| 138 |
return nil |
| 139 |
} |
| 140 |
|
| 141 |
func (x *AnyValue) GetBytesValue() []byte { |
| 142 |
if x, ok := x.GetValue().(*AnyValue_BytesValue); ok { |
| 143 |
return x.BytesValue |
| 144 |
} |
| 145 |
return nil |
| 146 |
} |
| 147 |
|
| 148 |
func (x *AnyValue) GetStringValueStrindex() int32 { |
| 149 |
if x, ok := x.GetValue().(*AnyValue_StringValueStrindex); ok { |
| 150 |
return x.StringValueStrindex |
| 151 |
} |
| 152 |
return 0 |
| 153 |
} |
| 154 |
|
| 155 |
type isAnyValue_Value interface { |
| 156 |
isAnyValue_Value() |
| 157 |
} |
| 158 |
|
| 159 |
type AnyValue_StringValue struct { |
| 160 |
StringValue string `protobuf:"bytes,1,opt,name=string_value,json=stringValue,proto3,oneof"` |
| 161 |
} |
| 162 |
|
| 163 |
type AnyValue_BoolValue struct { |
| 164 |
BoolValue bool `protobuf:"varint,2,opt,name=bool_value,json=boolValue,proto3,oneof"` |
| 165 |
} |
| 166 |
|
| 167 |
type AnyValue_IntValue struct { |
| 168 |
IntValue int64 `protobuf:"varint,3,opt,name=int_value,json=intValue,proto3,oneof"` |
| 169 |
} |
| 170 |
|
| 171 |
type AnyValue_DoubleValue struct { |
| 172 |
DoubleValue float64 `protobuf:"fixed64,4,opt,name=double_value,json=doubleValue,proto3,oneof"` |
| 173 |
} |
| 174 |
|
| 175 |
type AnyValue_ArrayValue struct { |
| 176 |
ArrayValue *ArrayValue `protobuf:"bytes,5,opt,name=array_value,json=arrayValue,proto3,oneof"` |
| 177 |
} |
| 178 |
|
| 179 |
type AnyValue_KvlistValue struct { |
| 180 |
KvlistValue *KeyValueList `protobuf:"bytes,6,opt,name=kvlist_value,json=kvlistValue,proto3,oneof"` |
| 181 |
} |
| 182 |
|
| 183 |
type AnyValue_BytesValue struct { |
| 184 |
BytesValue []byte `protobuf:"bytes,7,opt,name=bytes_value,json=bytesValue,proto3,oneof"` |
| 185 |
} |
| 186 |
|
| 187 |
type AnyValue_StringValueStrindex struct { |
| 188 |
// Reference to the string value in ProfilesDictionary.string_table. |
| 189 |
// |
| 190 |
// Note: This is currently used exclusively in the Profiling signal. |
| 191 |
// Implementers of OTLP receivers for signals other than Profiling should |
| 192 |
// treat the presence of this value as a non-fatal issue. |
| 193 |
// Log an error or warning indicating an unexpected field intended for the |
| 194 |
// Profiling signal and process the data as if this value were absent or |
| 195 |
// empty, ignoring its semantic content for the non-Profiling signal. |
| 196 |
// |
| 197 |
// Status: [Development] |
| 198 |
StringValueStrindex int32 `protobuf:"varint,8,opt,name=string_value_strindex,json=stringValueStrindex,proto3,oneof"` |
| 199 |
} |
| 200 |
|
| 201 |
func (*AnyValue_StringValue) isAnyValue_Value() {} |
| 202 |
|
| 203 |
func (*AnyValue_BoolValue) isAnyValue_Value() {} |
| 204 |
|
| 205 |
func (*AnyValue_IntValue) isAnyValue_Value() {} |
| 206 |
|
| 207 |
func (*AnyValue_DoubleValue) isAnyValue_Value() {} |
| 208 |
|
| 209 |
func (*AnyValue_ArrayValue) isAnyValue_Value() {} |
| 210 |
|
| 211 |
func (*AnyValue_KvlistValue) isAnyValue_Value() {} |
| 212 |
|
| 213 |
func (*AnyValue_BytesValue) isAnyValue_Value() {} |
| 214 |
|
| 215 |
func (*AnyValue_StringValueStrindex) isAnyValue_Value() {} |
| 216 |
|
| 217 |
// ArrayValue is a list of AnyValue messages. We need ArrayValue as a message |
| 218 |
// since oneof in AnyValue does not allow repeated fields. |
| 219 |
type ArrayValue struct { |
| 220 |
state protoimpl.MessageState |
| 221 |
sizeCache protoimpl.SizeCache |
| 222 |
unknownFields protoimpl.UnknownFields |
| 223 |
|
| 224 |
// Array of values. The array may be empty (contain 0 elements). |
| 225 |
Values []*AnyValue `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` |
| 226 |
} |
| 227 |
|
| 228 |
func (x *ArrayValue) Reset() { |
| 229 |
*x = ArrayValue{} |
| 230 |
if protoimpl.UnsafeEnabled { |
| 231 |
mi := &file_opentelemetry_proto_common_v1_common_proto_msgTypes[1] |
| 232 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 233 |
ms.StoreMessageInfo(mi) |
| 234 |
} |
| 235 |
} |
| 236 |
|
| 237 |
func (x *ArrayValue) String() string { |
| 238 |
return protoimpl.X.MessageStringOf(x) |
| 239 |
} |
| 240 |
|
| 241 |
func (*ArrayValue) ProtoMessage() {} |
| 242 |
|
| 243 |
func (x *ArrayValue) ProtoReflect() protoreflect.Message { |
| 244 |
mi := &file_opentelemetry_proto_common_v1_common_proto_msgTypes[1] |
| 245 |
if protoimpl.UnsafeEnabled && x != nil { |
| 246 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 247 |
if ms.LoadMessageInfo() == nil { |
| 248 |
ms.StoreMessageInfo(mi) |
| 249 |
} |
| 250 |
return ms |
| 251 |
} |
| 252 |
return mi.MessageOf(x) |
| 253 |
} |
| 254 |
|
| 255 |
// Deprecated: Use ArrayValue.ProtoReflect.Descriptor instead. |
| 256 |
func (*ArrayValue) Descriptor() ([]byte, []int) { |
| 257 |
return file_opentelemetry_proto_common_v1_common_proto_rawDescGZIP(), []int{1} |
| 258 |
} |
| 259 |
|
| 260 |
func (x *ArrayValue) GetValues() []*AnyValue { |
| 261 |
if x != nil { |
| 262 |
return x.Values |
| 263 |
} |
| 264 |
return nil |
| 265 |
} |
| 266 |
|
| 267 |
// KeyValueList is a list of KeyValue messages. We need KeyValueList as a message |
| 268 |
// since `oneof` in AnyValue does not allow repeated fields. Everywhere else where we need |
| 269 |
// a list of KeyValue messages (e.g. in Span) we use `repeated KeyValue` directly to |
| 270 |
// avoid unnecessary extra wrapping (which slows down the protocol). The 2 approaches |
| 271 |
// are semantically equivalent. |
| 272 |
type KeyValueList struct { |
| 273 |
state protoimpl.MessageState |
| 274 |
sizeCache protoimpl.SizeCache |
| 275 |
unknownFields protoimpl.UnknownFields |
| 276 |
|
| 277 |
// A collection of key/value pairs of key-value pairs. The list may be empty (may |
| 278 |
// contain 0 elements). |
| 279 |
// |
| 280 |
// The keys MUST be unique (it is not allowed to have more than one |
| 281 |
// value with the same key). |
| 282 |
// The behavior of software that receives duplicated keys can be unpredictable. |
| 283 |
Values []*KeyValue `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` |
| 284 |
} |
| 285 |
|
| 286 |
func (x *KeyValueList) Reset() { |
| 287 |
*x = KeyValueList{} |
| 288 |
if protoimpl.UnsafeEnabled { |
| 289 |
mi := &file_opentelemetry_proto_common_v1_common_proto_msgTypes[2] |
| 290 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 291 |
ms.StoreMessageInfo(mi) |
| 292 |
} |
| 293 |
} |
| 294 |
|
| 295 |
func (x *KeyValueList) String() string { |
| 296 |
return protoimpl.X.MessageStringOf(x) |
| 297 |
} |
| 298 |
|
| 299 |
func (*KeyValueList) ProtoMessage() {} |
| 300 |
|
| 301 |
func (x *KeyValueList) ProtoReflect() protoreflect.Message { |
| 302 |
mi := &file_opentelemetry_proto_common_v1_common_proto_msgTypes[2] |
| 303 |
if protoimpl.UnsafeEnabled && x != nil { |
| 304 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 305 |
if ms.LoadMessageInfo() == nil { |
| 306 |
ms.StoreMessageInfo(mi) |
| 307 |
} |
| 308 |
return ms |
| 309 |
} |
| 310 |
return mi.MessageOf(x) |
| 311 |
} |
| 312 |
|
| 313 |
// Deprecated: Use KeyValueList.ProtoReflect.Descriptor instead. |
| 314 |
func (*KeyValueList) Descriptor() ([]byte, []int) { |
| 315 |
return file_opentelemetry_proto_common_v1_common_proto_rawDescGZIP(), []int{2} |
| 316 |
} |
| 317 |
|
| 318 |
func (x *KeyValueList) GetValues() []*KeyValue { |
| 319 |
if x != nil { |
| 320 |
return x.Values |
| 321 |
} |
| 322 |
return nil |
| 323 |
} |
| 324 |
|
| 325 |
// Represents a key-value pair that is used to store Span attributes, Link |
| 326 |
// attributes, etc. |
| 327 |
type KeyValue struct { |
| 328 |
state protoimpl.MessageState |
| 329 |
sizeCache protoimpl.SizeCache |
| 330 |
unknownFields protoimpl.UnknownFields |
| 331 |
|
| 332 |
// The key name of the pair. |
| 333 |
// key_ref MUST NOT be set if key is used. |
| 334 |
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` |
| 335 |
// The value of the pair. |
| 336 |
Value *AnyValue `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` |
| 337 |
// Reference to the string key in ProfilesDictionary.string_table. |
| 338 |
// key MUST NOT be set if key_strindex is used. |
| 339 |
// |
| 340 |
// Note: This is currently used exclusively in the Profiling signal. |
| 341 |
// Implementers of OTLP receivers for signals other than Profiling should |
| 342 |
// treat the presence of this key as a non-fatal issue. |
| 343 |
// Log an error or warning indicating an unexpected field intended for the |
| 344 |
// Profiling signal and process the data as if this value were absent or |
| 345 |
// empty, ignoring its semantic content for the non-Profiling signal. |
| 346 |
// |
| 347 |
// Status: [Development] |
| 348 |
KeyStrindex int32 `protobuf:"varint,3,opt,name=key_strindex,json=keyStrindex,proto3" json:"key_strindex,omitempty"` |
| 349 |
} |
| 350 |
|
| 351 |
func (x *KeyValue) Reset() { |
| 352 |
*x = KeyValue{} |
| 353 |
if protoimpl.UnsafeEnabled { |
| 354 |
mi := &file_opentelemetry_proto_common_v1_common_proto_msgTypes[3] |
| 355 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 356 |
ms.StoreMessageInfo(mi) |
| 357 |
} |
| 358 |
} |
| 359 |
|
| 360 |
func (x *KeyValue) String() string { |
| 361 |
return protoimpl.X.MessageStringOf(x) |
| 362 |
} |
| 363 |
|
| 364 |
func (*KeyValue) ProtoMessage() {} |
| 365 |
|
| 366 |
func (x *KeyValue) ProtoReflect() protoreflect.Message { |
| 367 |
mi := &file_opentelemetry_proto_common_v1_common_proto_msgTypes[3] |
| 368 |
if protoimpl.UnsafeEnabled && x != nil { |
| 369 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 370 |
if ms.LoadMessageInfo() == nil { |
| 371 |
ms.StoreMessageInfo(mi) |
| 372 |
} |
| 373 |
return ms |
| 374 |
} |
| 375 |
return mi.MessageOf(x) |
| 376 |
} |
| 377 |
|
| 378 |
// Deprecated: Use KeyValue.ProtoReflect.Descriptor instead. |
| 379 |
func (*KeyValue) Descriptor() ([]byte, []int) { |
| 380 |
return file_opentelemetry_proto_common_v1_common_proto_rawDescGZIP(), []int{3} |
| 381 |
} |
| 382 |
|
| 383 |
func (x *KeyValue) GetKey() string { |
| 384 |
if x != nil { |
| 385 |
return x.Key |
| 386 |
} |
| 387 |
return "" |
| 388 |
} |
| 389 |
|
| 390 |
func (x *KeyValue) GetValue() *AnyValue { |
| 391 |
if x != nil { |
| 392 |
return x.Value |
| 393 |
} |
| 394 |
return nil |
| 395 |
} |
| 396 |
|
| 397 |
func (x *KeyValue) GetKeyStrindex() int32 { |
| 398 |
if x != nil { |
| 399 |
return x.KeyStrindex |
| 400 |
} |
| 401 |
return 0 |
| 402 |
} |
| 403 |
|
| 404 |
// InstrumentationScope is a message representing the instrumentation scope information |
| 405 |
// such as the fully qualified name and version. |
| 406 |
type InstrumentationScope struct { |
| 407 |
state protoimpl.MessageState |
| 408 |
sizeCache protoimpl.SizeCache |
| 409 |
unknownFields protoimpl.UnknownFields |
| 410 |
|
| 411 |
// A name denoting the Instrumentation scope. |
| 412 |
// An empty instrumentation scope name means the name is unknown. |
| 413 |
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 414 |
// Defines the version of the instrumentation scope. |
| 415 |
// An empty instrumentation scope version means the version is unknown. |
| 416 |
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` |
| 417 |
// Additional attributes that describe the scope. [Optional]. |
| 418 |
// Attribute keys MUST be unique (it is not allowed to have more than one |
| 419 |
// attribute with the same key). |
| 420 |
// The behavior of software that receives duplicated keys can be unpredictable. |
| 421 |
Attributes []*KeyValue `protobuf:"bytes,3,rep,name=attributes,proto3" json:"attributes,omitempty"` |
| 422 |
// The number of attributes that were discarded. Attributes |
| 423 |
// can be discarded because their keys are too long or because there are too many |
| 424 |
// attributes. If this value is 0, then no attributes were dropped. |
| 425 |
DroppedAttributesCount uint32 `protobuf:"varint,4,opt,name=dropped_attributes_count,json=droppedAttributesCount,proto3" json:"dropped_attributes_count,omitempty"` |
| 426 |
} |
| 427 |
|
| 428 |
func (x *InstrumentationScope) Reset() { |
| 429 |
*x = InstrumentationScope{} |
| 430 |
if protoimpl.UnsafeEnabled { |
| 431 |
mi := &file_opentelemetry_proto_common_v1_common_proto_msgTypes[4] |
| 432 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 433 |
ms.StoreMessageInfo(mi) |
| 434 |
} |
| 435 |
} |
| 436 |
|
| 437 |
func (x *InstrumentationScope) String() string { |
| 438 |
return protoimpl.X.MessageStringOf(x) |
| 439 |
} |
| 440 |
|
| 441 |
func (*InstrumentationScope) ProtoMessage() {} |
| 442 |
|
| 443 |
func (x *InstrumentationScope) ProtoReflect() protoreflect.Message { |
| 444 |
mi := &file_opentelemetry_proto_common_v1_common_proto_msgTypes[4] |
| 445 |
if protoimpl.UnsafeEnabled && x != nil { |
| 446 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 447 |
if ms.LoadMessageInfo() == nil { |
| 448 |
ms.StoreMessageInfo(mi) |
| 449 |
} |
| 450 |
return ms |
| 451 |
} |
| 452 |
return mi.MessageOf(x) |
| 453 |
} |
| 454 |
|
| 455 |
// Deprecated: Use InstrumentationScope.ProtoReflect.Descriptor instead. |
| 456 |
func (*InstrumentationScope) Descriptor() ([]byte, []int) { |
| 457 |
return file_opentelemetry_proto_common_v1_common_proto_rawDescGZIP(), []int{4} |
| 458 |
} |
| 459 |
|
| 460 |
func (x *InstrumentationScope) GetName() string { |
| 461 |
if x != nil { |
| 462 |
return x.Name |
| 463 |
} |
| 464 |
return "" |
| 465 |
} |
| 466 |
|
| 467 |
func (x *InstrumentationScope) GetVersion() string { |
| 468 |
if x != nil { |
| 469 |
return x.Version |
| 470 |
} |
| 471 |
return "" |
| 472 |
} |
| 473 |
|
| 474 |
func (x *InstrumentationScope) GetAttributes() []*KeyValue { |
| 475 |
if x != nil { |
| 476 |
return x.Attributes |
| 477 |
} |
| 478 |
return nil |
| 479 |
} |
| 480 |
|
| 481 |
func (x *InstrumentationScope) GetDroppedAttributesCount() uint32 { |
| 482 |
if x != nil { |
| 483 |
return x.DroppedAttributesCount |
| 484 |
} |
| 485 |
return 0 |
| 486 |
} |
| 487 |
|
| 488 |
// A reference to an Entity. |
| 489 |
// Entity represents an object of interest associated with produced telemetry: e.g spans, metrics, profiles, or logs. |
| 490 |
// |
| 491 |
// Status: [Development] |
| 492 |
type EntityRef struct { |
| 493 |
state protoimpl.MessageState |
| 494 |
sizeCache protoimpl.SizeCache |
| 495 |
unknownFields protoimpl.UnknownFields |
| 496 |
|
| 497 |
// The Schema URL, if known. This is the identifier of the Schema that the entity data |
| 498 |
// is recorded in. To learn more about Schema URL see |
| 499 |
// https://opentelemetry.io/docs/specs/otel/schemas/#schema-url |
| 500 |
// |
| 501 |
// This schema_url applies to the data in this message and to the Resource attributes |
| 502 |
// referenced by id_keys and description_keys. |
| 503 |
// TODO: discuss if we are happy with this somewhat complicated definition of what |
| 504 |
// the schema_url applies to. |
| 505 |
// |
| 506 |
// This field obsoletes the schema_url field in ResourceMetrics/ResourceSpans/ResourceLogs. |
| 507 |
SchemaUrl string `protobuf:"bytes,1,opt,name=schema_url,json=schemaUrl,proto3" json:"schema_url,omitempty"` |
| 508 |
// Defines the type of the entity. MUST not change during the lifetime of the entity. |
| 509 |
// For example: "service" or "host". This field is required and MUST not be empty |
| 510 |
// for valid entities. |
| 511 |
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` |
| 512 |
// Attribute Keys that identify the entity. |
| 513 |
// MUST not change during the lifetime of the entity. The Id must contain at least one attribute. |
| 514 |
// These keys MUST exist in the containing {message}.attributes. |
| 515 |
IdKeys []string `protobuf:"bytes,3,rep,name=id_keys,json=idKeys,proto3" json:"id_keys,omitempty"` |
| 516 |
// Descriptive (non-identifying) attribute keys of the entity. |
| 517 |
// MAY change over the lifetime of the entity. MAY be empty. |
| 518 |
// These attribute keys are not part of entity's identity. |
| 519 |
// These keys MUST exist in the containing {message}.attributes. |
| 520 |
DescriptionKeys []string `protobuf:"bytes,4,rep,name=description_keys,json=descriptionKeys,proto3" json:"description_keys,omitempty"` |
| 521 |
} |
| 522 |
|
| 523 |
func (x *EntityRef) Reset() { |
| 524 |
*x = EntityRef{} |
| 525 |
if protoimpl.UnsafeEnabled { |
| 526 |
mi := &file_opentelemetry_proto_common_v1_common_proto_msgTypes[5] |
| 527 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 528 |
ms.StoreMessageInfo(mi) |
| 529 |
} |
| 530 |
} |
| 531 |
|
| 532 |
func (x *EntityRef) String() string { |
| 533 |
return protoimpl.X.MessageStringOf(x) |
| 534 |
} |
| 535 |
|
| 536 |
func (*EntityRef) ProtoMessage() {} |
| 537 |
|
| 538 |
func (x *EntityRef) ProtoReflect() protoreflect.Message { |
| 539 |
mi := &file_opentelemetry_proto_common_v1_common_proto_msgTypes[5] |
| 540 |
if protoimpl.UnsafeEnabled && x != nil { |
| 541 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 542 |
if ms.LoadMessageInfo() == nil { |
| 543 |
ms.StoreMessageInfo(mi) |
| 544 |
} |
| 545 |
return ms |
| 546 |
} |
| 547 |
return mi.MessageOf(x) |
| 548 |
} |
| 549 |
|
| 550 |
// Deprecated: Use EntityRef.ProtoReflect.Descriptor instead. |
| 551 |
func (*EntityRef) Descriptor() ([]byte, []int) { |
| 552 |
return file_opentelemetry_proto_common_v1_common_proto_rawDescGZIP(), []int{5} |
| 553 |
} |
| 554 |
|
| 555 |
func (x *EntityRef) GetSchemaUrl() string { |
| 556 |
if x != nil { |
| 557 |
return x.SchemaUrl |
| 558 |
} |
| 559 |
return "" |
| 560 |
} |
| 561 |
|
| 562 |
func (x *EntityRef) GetType() string { |
| 563 |
if x != nil { |
| 564 |
return x.Type |
| 565 |
} |
| 566 |
return "" |
| 567 |
} |
| 568 |
|
| 569 |
func (x *EntityRef) GetIdKeys() []string { |
| 570 |
if x != nil { |
| 571 |
return x.IdKeys |
| 572 |
} |
| 573 |
return nil |
| 574 |
} |
| 575 |
|
| 576 |
func (x *EntityRef) GetDescriptionKeys() []string { |
| 577 |
if x != nil { |
| 578 |
return x.DescriptionKeys |
| 579 |
} |
| 580 |
return nil |
| 581 |
} |
| 582 |
|
| 583 |
var File_opentelemetry_proto_common_v1_common_proto protoreflect.FileDescriptor |
| 584 |
|
| 585 |
var file_opentelemetry_proto_common_v1_common_proto_rawDesc = []byte{ |
| 586 |
0x0a, 0x2a, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2f, |
| 587 |
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, |
| 588 |
0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1d, 0x6f, 0x70, |
| 589 |
0x65, 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, |
| 590 |
0x6f, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x22, 0x96, 0x03, 0x0a, 0x08, |
| 591 |
0x41, 0x6e, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x73, 0x74, 0x72, 0x69, |
| 592 |
0x6e, 0x67, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, |
| 593 |
0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1f, 0x0a, |
| 594 |
0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, |
| 595 |
0x08, 0x48, 0x00, 0x52, 0x09, 0x62, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1d, |
| 596 |
0x0a, 0x09, 0x69, 0x6e, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, |
| 597 |
0x03, 0x48, 0x00, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, |
| 598 |
0x0c, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, |
| 599 |
0x01, 0x28, 0x01, 0x48, 0x00, 0x52, 0x0b, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x56, 0x61, 0x6c, |
| 600 |
0x75, 0x65, 0x12, 0x4c, 0x0a, 0x0b, 0x61, 0x72, 0x72, 0x61, 0x79, 0x5f, 0x76, 0x61, 0x6c, 0x75, |
| 601 |
0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65, |
| 602 |
0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x63, 0x6f, |
| 603 |
0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x72, 0x72, 0x61, 0x79, 0x56, 0x61, 0x6c, |
| 604 |
0x75, 0x65, 0x48, 0x00, 0x52, 0x0a, 0x61, 0x72, 0x72, 0x61, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, |
| 605 |
0x12, 0x50, 0x0a, 0x0c, 0x6b, 0x76, 0x6c, 0x69, 0x73, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, |
| 606 |
0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c, |
| 607 |
0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x63, 0x6f, 0x6d, |
| 608 |
0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x4c, |
| 609 |
0x69, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0b, 0x6b, 0x76, 0x6c, 0x69, 0x73, 0x74, 0x56, 0x61, 0x6c, |
| 610 |
0x75, 0x65, 0x12, 0x21, 0x0a, 0x0b, 0x62, 0x79, 0x74, 0x65, 0x73, 0x5f, 0x76, 0x61, 0x6c, 0x75, |
| 611 |
0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x0a, 0x62, 0x79, 0x74, 0x65, 0x73, |
| 612 |
0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x34, 0x0a, 0x15, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, |
| 613 |
0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x08, |
| 614 |
0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x13, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, |
| 615 |
0x6c, 0x75, 0x65, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x42, 0x07, 0x0a, 0x05, 0x76, |
| 616 |
0x61, 0x6c, 0x75, 0x65, 0x22, 0x4d, 0x0a, 0x0a, 0x41, 0x72, 0x72, 0x61, 0x79, 0x56, 0x61, 0x6c, |
| 617 |
0x75, 0x65, 0x12, 0x3f, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, |
| 618 |
0x28, 0x0b, 0x32, 0x27, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, |
| 619 |
0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, |
| 620 |
0x76, 0x31, 0x2e, 0x41, 0x6e, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x76, 0x61, 0x6c, |
| 621 |
0x75, 0x65, 0x73, 0x22, 0x4f, 0x0a, 0x0c, 0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x4c, |
| 622 |
0x69, 0x73, 0x74, 0x12, 0x3f, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, |
| 623 |
0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, |
| 624 |
0x74, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, |
| 625 |
0x2e, 0x76, 0x31, 0x2e, 0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x76, 0x61, |
| 626 |
0x6c, 0x75, 0x65, 0x73, 0x22, 0x7e, 0x0a, 0x08, 0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, |
| 627 |
0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, |
| 628 |
0x65, 0x79, 0x12, 0x3d, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, |
| 629 |
0x0b, 0x32, 0x27, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, |
| 630 |
0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, |
| 631 |
0x31, 0x2e, 0x41, 0x6e, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, |
| 632 |
0x65, 0x12, 0x21, 0x0a, 0x0c, 0x6b, 0x65, 0x79, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x64, 0x65, |
| 633 |
0x78, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x6b, 0x65, 0x79, 0x53, 0x74, 0x72, 0x69, |
| 634 |
0x6e, 0x64, 0x65, 0x78, 0x22, 0xc7, 0x01, 0x0a, 0x14, 0x49, 0x6e, 0x73, 0x74, 0x72, 0x75, 0x6d, |
| 635 |
0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x12, 0x12, 0x0a, |
| 636 |
0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, |
| 637 |
0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, |
| 638 |
0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x47, 0x0a, 0x0a, 0x61, |
| 639 |
0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, |
| 640 |
0x27, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2e, |
| 641 |
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, |
| 642 |
0x4b, 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, |
| 643 |
0x75, 0x74, 0x65, 0x73, 0x12, 0x38, 0x0a, 0x18, 0x64, 0x72, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x5f, |
| 644 |
0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, |
| 645 |
0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x16, 0x64, 0x72, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x41, |
| 646 |
0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x82, |
| 647 |
0x01, 0x0a, 0x09, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x66, 0x12, 0x1d, 0x0a, 0x0a, |
| 648 |
0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, |
| 649 |
0x52, 0x09, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x55, 0x72, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x74, |
| 650 |
0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, |
| 651 |
0x17, 0x0a, 0x07, 0x69, 0x64, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, |
| 652 |
0x52, 0x06, 0x69, 0x64, 0x4b, 0x65, 0x79, 0x73, 0x12, 0x29, 0x0a, 0x10, 0x64, 0x65, 0x73, 0x63, |
| 653 |
0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x04, 0x20, 0x03, |
| 654 |
0x28, 0x09, 0x52, 0x0f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x4b, |
| 655 |
0x65, 0x79, 0x73, 0x42, 0x7b, 0x0a, 0x20, 0x69, 0x6f, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65, |
| 656 |
0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x63, 0x6f, |
| 657 |
0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x50, |
| 658 |
0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x28, 0x67, 0x6f, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x74, |
| 659 |
0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2e, 0x69, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, |
| 660 |
0x6f, 0x2f, 0x6f, 0x74, 0x6c, 0x70, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x76, 0x31, |
| 661 |
0xaa, 0x02, 0x1d, 0x4f, 0x70, 0x65, 0x6e, 0x54, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, |
| 662 |
0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x56, 0x31, |
| 663 |
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| 664 |
} |
| 665 |
|
| 666 |
var ( |
| 667 |
file_opentelemetry_proto_common_v1_common_proto_rawDescOnce sync.Once |
| 668 |
file_opentelemetry_proto_common_v1_common_proto_rawDescData = file_opentelemetry_proto_common_v1_common_proto_rawDesc |
| 669 |
) |
| 670 |
|
| 671 |
func file_opentelemetry_proto_common_v1_common_proto_rawDescGZIP() []byte { |
| 672 |
file_opentelemetry_proto_common_v1_common_proto_rawDescOnce.Do(func() { |
| 673 |
file_opentelemetry_proto_common_v1_common_proto_rawDescData = protoimpl.X.CompressGZIP(file_opentelemetry_proto_common_v1_common_proto_rawDescData) |
| 674 |
}) |
| 675 |
return file_opentelemetry_proto_common_v1_common_proto_rawDescData |
| 676 |
} |
| 677 |
|
| 678 |
var file_opentelemetry_proto_common_v1_common_proto_msgTypes = make([]protoimpl.MessageInfo, 6) |
| 679 |
var file_opentelemetry_proto_common_v1_common_proto_goTypes = []interface{}{ |
| 680 |
(*AnyValue)(nil), // 0: opentelemetry.proto.common.v1.AnyValue |
| 681 |
(*ArrayValue)(nil), // 1: opentelemetry.proto.common.v1.ArrayValue |
| 682 |
(*KeyValueList)(nil), // 2: opentelemetry.proto.common.v1.KeyValueList |
| 683 |
(*KeyValue)(nil), // 3: opentelemetry.proto.common.v1.KeyValue |
| 684 |
(*InstrumentationScope)(nil), // 4: opentelemetry.proto.common.v1.InstrumentationScope |
| 685 |
(*EntityRef)(nil), // 5: opentelemetry.proto.common.v1.EntityRef |
| 686 |
} |
| 687 |
var file_opentelemetry_proto_common_v1_common_proto_depIdxs = []int32{ |
| 688 |
1, // 0: opentelemetry.proto.common.v1.AnyValue.array_value:type_name -> opentelemetry.proto.common.v1.ArrayValue |
| 689 |
2, // 1: opentelemetry.proto.common.v1.AnyValue.kvlist_value:type_name -> opentelemetry.proto.common.v1.KeyValueList |
| 690 |
0, // 2: opentelemetry.proto.common.v1.ArrayValue.values:type_name -> opentelemetry.proto.common.v1.AnyValue |
| 691 |
3, // 3: opentelemetry.proto.common.v1.KeyValueList.values:type_name -> opentelemetry.proto.common.v1.KeyValue |
| 692 |
0, // 4: opentelemetry.proto.common.v1.KeyValue.value:type_name -> opentelemetry.proto.common.v1.AnyValue |
| 693 |
3, // 5: opentelemetry.proto.common.v1.InstrumentationScope.attributes:type_name -> opentelemetry.proto.common.v1.KeyValue |
| 694 |
6, // [6:6] is the sub-list for method output_type |
| 695 |
6, // [6:6] is the sub-list for method input_type |
| 696 |
6, // [6:6] is the sub-list for extension type_name |
| 697 |
6, // [6:6] is the sub-list for extension extendee |
| 698 |
0, // [0:6] is the sub-list for field type_name |
| 699 |
} |
| 700 |
|
| 701 |
func init() { file_opentelemetry_proto_common_v1_common_proto_init() } |
| 702 |
func file_opentelemetry_proto_common_v1_common_proto_init() { |
| 703 |
if File_opentelemetry_proto_common_v1_common_proto != nil { |
| 704 |
return |
| 705 |
} |
| 706 |
if !protoimpl.UnsafeEnabled { |
| 707 |
file_opentelemetry_proto_common_v1_common_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| 708 |
switch v := v.(*AnyValue); i { |
| 709 |
case 0: |
| 710 |
return &v.state |
| 711 |
case 1: |
| 712 |
return &v.sizeCache |
| 713 |
case 2: |
| 714 |
return &v.unknownFields |
| 715 |
default: |
| 716 |
return nil |
| 717 |
} |
| 718 |
} |
| 719 |
file_opentelemetry_proto_common_v1_common_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { |
| 720 |
switch v := v.(*ArrayValue); i { |
| 721 |
case 0: |
| 722 |
return &v.state |
| 723 |
case 1: |
| 724 |
return &v.sizeCache |
| 725 |
case 2: |
| 726 |
return &v.unknownFields |
| 727 |
default: |
| 728 |
return nil |
| 729 |
} |
| 730 |
} |
| 731 |
file_opentelemetry_proto_common_v1_common_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { |
| 732 |
switch v := v.(*KeyValueList); i { |
| 733 |
case 0: |
| 734 |
return &v.state |
| 735 |
case 1: |
| 736 |
return &v.sizeCache |
| 737 |
case 2: |
| 738 |
return &v.unknownFields |
| 739 |
default: |
| 740 |
return nil |
| 741 |
} |
| 742 |
} |
| 743 |
file_opentelemetry_proto_common_v1_common_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { |
| 744 |
switch v := v.(*KeyValue); i { |
| 745 |
case 0: |
| 746 |
return &v.state |
| 747 |
case 1: |
| 748 |
return &v.sizeCache |
| 749 |
case 2: |
| 750 |
return &v.unknownFields |
| 751 |
default: |
| 752 |
return nil |
| 753 |
} |
| 754 |
} |
| 755 |
file_opentelemetry_proto_common_v1_common_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { |
| 756 |
switch v := v.(*InstrumentationScope); i { |
| 757 |
case 0: |
| 758 |
return &v.state |
| 759 |
case 1: |
| 760 |
return &v.sizeCache |
| 761 |
case 2: |
| 762 |
return &v.unknownFields |
| 763 |
default: |
| 764 |
return nil |
| 765 |
} |
| 766 |
} |
| 767 |
file_opentelemetry_proto_common_v1_common_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { |
| 768 |
switch v := v.(*EntityRef); i { |
| 769 |
case 0: |
| 770 |
return &v.state |
| 771 |
case 1: |
| 772 |
return &v.sizeCache |
| 773 |
case 2: |
| 774 |
return &v.unknownFields |
| 775 |
default: |
| 776 |
return nil |
| 777 |
} |
| 778 |
} |
| 779 |
} |
| 780 |
file_opentelemetry_proto_common_v1_common_proto_msgTypes[0].OneofWrappers = []interface{}{ |
| 781 |
(*AnyValue_StringValue)(nil), |
| 782 |
(*AnyValue_BoolValue)(nil), |
| 783 |
(*AnyValue_IntValue)(nil), |
| 784 |
(*AnyValue_DoubleValue)(nil), |
| 785 |
(*AnyValue_ArrayValue)(nil), |
| 786 |
(*AnyValue_KvlistValue)(nil), |
| 787 |
(*AnyValue_BytesValue)(nil), |
| 788 |
(*AnyValue_StringValueStrindex)(nil), |
| 789 |
} |
| 790 |
type x struct{} |
| 791 |
out := protoimpl.TypeBuilder{ |
| 792 |
File: protoimpl.DescBuilder{ |
| 793 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 794 |
RawDescriptor: file_opentelemetry_proto_common_v1_common_proto_rawDesc, |
| 795 |
NumEnums: 0, |
| 796 |
NumMessages: 6, |
| 797 |
NumExtensions: 0, |
| 798 |
NumServices: 0, |
| 799 |
}, |
| 800 |
GoTypes: file_opentelemetry_proto_common_v1_common_proto_goTypes, |
| 801 |
DependencyIndexes: file_opentelemetry_proto_common_v1_common_proto_depIdxs, |
| 802 |
MessageInfos: file_opentelemetry_proto_common_v1_common_proto_msgTypes, |
| 803 |
}.Build() |
| 804 |
File_opentelemetry_proto_common_v1_common_proto = out.File |
| 805 |
file_opentelemetry_proto_common_v1_common_proto_rawDesc = nil |
| 806 |
file_opentelemetry_proto_common_v1_common_proto_goTypes = nil |
| 807 |
file_opentelemetry_proto_common_v1_common_proto_depIdxs = nil |
| 808 |
} |