package v1
import (
v1 "go.opentelemetry.io/proto/otlp/common/v1"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
_ = protoimpl .EnforceVersion (20 - protoimpl .MinVersion )
_ = protoimpl .EnforceVersion (protoimpl .MaxVersion - 20 )
)
type Resource struct {
state protoimpl .MessageState
sizeCache protoimpl .SizeCache
unknownFields protoimpl .UnknownFields
Attributes []*v1 .KeyValue `protobuf:"bytes,1,rep,name=attributes,proto3" json:"attributes,omitempty"`
DroppedAttributesCount uint32 `protobuf:"varint,2,opt,name=dropped_attributes_count,json=droppedAttributesCount,proto3" json:"dropped_attributes_count,omitempty"`
EntityRefs []*v1 .EntityRef `protobuf:"bytes,3,rep,name=entity_refs,json=entityRefs,proto3" json:"entity_refs,omitempty"`
}
func (x *Resource ) Reset () {
*x = Resource {}
if protoimpl .UnsafeEnabled {
mi := &file_opentelemetry_proto_resource_v1_resource_proto_msgTypes [0 ]
ms := protoimpl .X .MessageStateOf (protoimpl .Pointer (x ))
ms .StoreMessageInfo (mi )
}
}
func (x *Resource ) String () string {
return protoimpl .X .MessageStringOf (x )
}
func (*Resource ) ProtoMessage () {}
func (x *Resource ) ProtoReflect () protoreflect .Message {
mi := &file_opentelemetry_proto_resource_v1_resource_proto_msgTypes [0 ]
if protoimpl .UnsafeEnabled && x != nil {
ms := protoimpl .X .MessageStateOf (protoimpl .Pointer (x ))
if ms .LoadMessageInfo () == nil {
ms .StoreMessageInfo (mi )
}
return ms
}
return mi .MessageOf (x )
}
func (*Resource ) Descriptor () ([]byte , []int ) {
return file_opentelemetry_proto_resource_v1_resource_proto_rawDescGZIP (), []int {0 }
}
func (x *Resource ) GetAttributes () []*v1 .KeyValue {
if x != nil {
return x .Attributes
}
return nil
}
func (x *Resource ) GetDroppedAttributesCount () uint32 {
if x != nil {
return x .DroppedAttributesCount
}
return 0
}
func (x *Resource ) GetEntityRefs () []*v1 .EntityRef {
if x != nil {
return x .EntityRefs
}
return nil
}
var File_opentelemetry_proto_resource_v1_resource_proto protoreflect .FileDescriptor
var file_opentelemetry_proto_resource_v1_resource_proto_rawDesc = []byte {
0x0a , 0x2e , 0x6f , 0x70 , 0x65 , 0x6e , 0x74 , 0x65 , 0x6c , 0x65 , 0x6d , 0x65 , 0x74 , 0x72 , 0x79 , 0x2f ,
0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x2f , 0x72 , 0x65 , 0x73 , 0x6f , 0x75 , 0x72 , 0x63 , 0x65 , 0x2f , 0x76 ,
0x31 , 0x2f , 0x72 , 0x65 , 0x73 , 0x6f , 0x75 , 0x72 , 0x63 , 0x65 , 0x2e , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f ,
0x12 , 0x1f , 0x6f , 0x70 , 0x65 , 0x6e , 0x74 , 0x65 , 0x6c , 0x65 , 0x6d , 0x65 , 0x74 , 0x72 , 0x79 , 0x2e ,
0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x2e , 0x72 , 0x65 , 0x73 , 0x6f , 0x75 , 0x72 , 0x63 , 0x65 , 0x2e , 0x76 ,
0x31 , 0x1a , 0x2a , 0x6f , 0x70 , 0x65 , 0x6e , 0x74 , 0x65 , 0x6c , 0x65 , 0x6d , 0x65 , 0x74 , 0x72 , 0x79 ,
0x2f , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x2f , 0x63 , 0x6f , 0x6d , 0x6d , 0x6f , 0x6e , 0x2f , 0x76 , 0x31 ,
0x2f , 0x63 , 0x6f , 0x6d , 0x6d , 0x6f , 0x6e , 0x2e , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x22 , 0xd8 , 0x01 ,
0x0a , 0x08 , 0x52 , 0x65 , 0x73 , 0x6f , 0x75 , 0x72 , 0x63 , 0x65 , 0x12 , 0x47 , 0x0a , 0x0a , 0x61 , 0x74 ,
0x74 , 0x72 , 0x69 , 0x62 , 0x75 , 0x74 , 0x65 , 0x73 , 0x18 , 0x01 , 0x20 , 0x03 , 0x28 , 0x0b , 0x32 , 0x27 ,
0x2e , 0x6f , 0x70 , 0x65 , 0x6e , 0x74 , 0x65 , 0x6c , 0x65 , 0x6d , 0x65 , 0x74 , 0x72 , 0x79 , 0x2e , 0x70 ,
0x72 , 0x6f , 0x74 , 0x6f , 0x2e , 0x63 , 0x6f , 0x6d , 0x6d , 0x6f , 0x6e , 0x2e , 0x76 , 0x31 , 0x2e , 0x4b ,
0x65 , 0x79 , 0x56 , 0x61 , 0x6c , 0x75 , 0x65 , 0x52 , 0x0a , 0x61 , 0x74 , 0x74 , 0x72 , 0x69 , 0x62 , 0x75 ,
0x74 , 0x65 , 0x73 , 0x12 , 0x38 , 0x0a , 0x18 , 0x64 , 0x72 , 0x6f , 0x70 , 0x70 , 0x65 , 0x64 , 0x5f , 0x61 ,
0x74 , 0x74 , 0x72 , 0x69 , 0x62 , 0x75 , 0x74 , 0x65 , 0x73 , 0x5f , 0x63 , 0x6f , 0x75 , 0x6e , 0x74 , 0x18 ,
0x02 , 0x20 , 0x01 , 0x28 , 0x0d , 0x52 , 0x16 , 0x64 , 0x72 , 0x6f , 0x70 , 0x70 , 0x65 , 0x64 , 0x41 , 0x74 ,
0x74 , 0x72 , 0x69 , 0x62 , 0x75 , 0x74 , 0x65 , 0x73 , 0x43 , 0x6f , 0x75 , 0x6e , 0x74 , 0x12 , 0x49 , 0x0a ,
0x0b , 0x65 , 0x6e , 0x74 , 0x69 , 0x74 , 0x79 , 0x5f , 0x72 , 0x65 , 0x66 , 0x73 , 0x18 , 0x03 , 0x20 , 0x03 ,
0x28 , 0x0b , 0x32 , 0x28 , 0x2e , 0x6f , 0x70 , 0x65 , 0x6e , 0x74 , 0x65 , 0x6c , 0x65 , 0x6d , 0x65 , 0x74 ,
0x72 , 0x79 , 0x2e , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x2e , 0x63 , 0x6f , 0x6d , 0x6d , 0x6f , 0x6e , 0x2e ,
0x76 , 0x31 , 0x2e , 0x45 , 0x6e , 0x74 , 0x69 , 0x74 , 0x79 , 0x52 , 0x65 , 0x66 , 0x52 , 0x0a , 0x65 , 0x6e ,
0x74 , 0x69 , 0x74 , 0x79 , 0x52 , 0x65 , 0x66 , 0x73 , 0x42 , 0x83 , 0x01 , 0x0a , 0x22 , 0x69 , 0x6f , 0x2e ,
0x6f , 0x70 , 0x65 , 0x6e , 0x74 , 0x65 , 0x6c , 0x65 , 0x6d , 0x65 , 0x74 , 0x72 , 0x79 , 0x2e , 0x70 , 0x72 ,
0x6f , 0x74 , 0x6f , 0x2e , 0x72 , 0x65 , 0x73 , 0x6f , 0x75 , 0x72 , 0x63 , 0x65 , 0x2e , 0x76 , 0x31 , 0x42 ,
0x0d , 0x52 , 0x65 , 0x73 , 0x6f , 0x75 , 0x72 , 0x63 , 0x65 , 0x50 , 0x72 , 0x6f , 0x74 , 0x6f , 0x50 , 0x01 ,
0x5a , 0x2a , 0x67 , 0x6f , 0x2e , 0x6f , 0x70 , 0x65 , 0x6e , 0x74 , 0x65 , 0x6c , 0x65 , 0x6d , 0x65 , 0x74 ,
0x72 , 0x79 , 0x2e , 0x69 , 0x6f , 0x2f , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x2f , 0x6f , 0x74 , 0x6c , 0x70 ,
0x2f , 0x72 , 0x65 , 0x73 , 0x6f , 0x75 , 0x72 , 0x63 , 0x65 , 0x2f , 0x76 , 0x31 , 0xaa , 0x02 , 0x1f , 0x4f ,
0x70 , 0x65 , 0x6e , 0x54 , 0x65 , 0x6c , 0x65 , 0x6d , 0x65 , 0x74 , 0x72 , 0x79 , 0x2e , 0x50 , 0x72 , 0x6f ,
0x74 , 0x6f , 0x2e , 0x52 , 0x65 , 0x73 , 0x6f , 0x75 , 0x72 , 0x63 , 0x65 , 0x2e , 0x56 , 0x31 , 0x62 , 0x06 ,
0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x33 ,
}
var (
file_opentelemetry_proto_resource_v1_resource_proto_rawDescOnce sync .Once
file_opentelemetry_proto_resource_v1_resource_proto_rawDescData = file_opentelemetry_proto_resource_v1_resource_proto_rawDesc
)
func file_opentelemetry_proto_resource_v1_resource_proto_rawDescGZIP() []byte {
file_opentelemetry_proto_resource_v1_resource_proto_rawDescOnce .Do (func () {
file_opentelemetry_proto_resource_v1_resource_proto_rawDescData = protoimpl .X .CompressGZIP (file_opentelemetry_proto_resource_v1_resource_proto_rawDescData )
})
return file_opentelemetry_proto_resource_v1_resource_proto_rawDescData
}
var file_opentelemetry_proto_resource_v1_resource_proto_msgTypes = make ([]protoimpl .MessageInfo , 1 )
var file_opentelemetry_proto_resource_v1_resource_proto_goTypes = []interface {}{
(*Resource )(nil ),
(*v1 .KeyValue )(nil ),
(*v1 .EntityRef )(nil ),
}
var file_opentelemetry_proto_resource_v1_resource_proto_depIdxs = []int32 {
1 ,
2 ,
2 ,
2 ,
2 ,
2 ,
0 ,
}
func init() { file_opentelemetry_proto_resource_v1_resource_proto_init () }
func file_opentelemetry_proto_resource_v1_resource_proto_init() {
if File_opentelemetry_proto_resource_v1_resource_proto != nil {
return
}
if !protoimpl .UnsafeEnabled {
file_opentelemetry_proto_resource_v1_resource_proto_msgTypes [0 ].Exporter = func (v interface {}, i int ) interface {} {
switch v := v .(*Resource ); i {
case 0 :
return &v .state
case 1 :
return &v .sizeCache
case 2 :
return &v .unknownFields
default :
return nil
}
}
}
type x struct {}
out := protoimpl .TypeBuilder {
File : protoimpl .DescBuilder {
GoPackagePath : reflect .TypeOf (x {}).PkgPath (),
RawDescriptor : file_opentelemetry_proto_resource_v1_resource_proto_rawDesc ,
NumEnums : 0 ,
NumMessages : 1 ,
NumExtensions : 0 ,
NumServices : 0 ,
},
GoTypes : file_opentelemetry_proto_resource_v1_resource_proto_goTypes ,
DependencyIndexes : file_opentelemetry_proto_resource_v1_resource_proto_depIdxs ,
MessageInfos : file_opentelemetry_proto_resource_v1_resource_proto_msgTypes ,
}.Build ()
File_opentelemetry_proto_resource_v1_resource_proto = out .File
file_opentelemetry_proto_resource_v1_resource_proto_rawDesc = nil
file_opentelemetry_proto_resource_v1_resource_proto_goTypes = nil
file_opentelemetry_proto_resource_v1_resource_proto_depIdxs = nil
}
The pages are generated with Golds v0.8.2 . (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu .
PR and bug reports are welcome and can be submitted to the issue list .
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds .