1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package v1
22
23 import (
24 v1 "go.opentelemetry.io/proto/otlp/common/v1"
25 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
26 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
27 reflect "reflect"
28 sync "sync"
29 )
30
31 const (
32
33 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
34
35 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
36 )
37
38
39 type Resource struct {
40 state protoimpl.MessageState
41 sizeCache protoimpl.SizeCache
42 unknownFields protoimpl.UnknownFields
43
44
45
46
47 Attributes []*v1.KeyValue `protobuf:"bytes,1,rep,name=attributes,proto3" json:"attributes,omitempty"`
48
49
50 DroppedAttributesCount uint32 `protobuf:"varint,2,opt,name=dropped_attributes_count,json=droppedAttributesCount,proto3" json:"dropped_attributes_count,omitempty"`
51 }
52
53 func (x *Resource) Reset() {
54 *x = Resource{}
55 if protoimpl.UnsafeEnabled {
56 mi := &file_opentelemetry_proto_resource_v1_resource_proto_msgTypes[0]
57 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
58 ms.StoreMessageInfo(mi)
59 }
60 }
61
62 func (x *Resource) String() string {
63 return protoimpl.X.MessageStringOf(x)
64 }
65
66 func (*Resource) ProtoMessage() {}
67
68 func (x *Resource) ProtoReflect() protoreflect.Message {
69 mi := &file_opentelemetry_proto_resource_v1_resource_proto_msgTypes[0]
70 if protoimpl.UnsafeEnabled && x != nil {
71 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
72 if ms.LoadMessageInfo() == nil {
73 ms.StoreMessageInfo(mi)
74 }
75 return ms
76 }
77 return mi.MessageOf(x)
78 }
79
80
81 func (*Resource) Descriptor() ([]byte, []int) {
82 return file_opentelemetry_proto_resource_v1_resource_proto_rawDescGZIP(), []int{0}
83 }
84
85 func (x *Resource) GetAttributes() []*v1.KeyValue {
86 if x != nil {
87 return x.Attributes
88 }
89 return nil
90 }
91
92 func (x *Resource) GetDroppedAttributesCount() uint32 {
93 if x != nil {
94 return x.DroppedAttributesCount
95 }
96 return 0
97 }
98
99 var File_opentelemetry_proto_resource_v1_resource_proto protoreflect.FileDescriptor
100
101 var file_opentelemetry_proto_resource_v1_resource_proto_rawDesc = []byte{
102 0x0a, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2f,
103 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2f, 0x76,
104 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
105 0x12, 0x1f, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2e,
106 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x76,
107 0x31, 0x1a, 0x2a, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79,
108 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x76, 0x31,
109 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8d, 0x01,
110 0x0a, 0x08, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x47, 0x0a, 0x0a, 0x61, 0x74,
111 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27,
112 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2e, 0x70,
113 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4b,
114 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75,
115 0x74, 0x65, 0x73, 0x12, 0x38, 0x0a, 0x18, 0x64, 0x72, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x5f, 0x61,
116 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18,
117 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x16, 0x64, 0x72, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x41, 0x74,
118 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x83, 0x01,
119 0x0a, 0x22, 0x69, 0x6f, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74,
120 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
121 0x65, 0x2e, 0x76, 0x31, 0x42, 0x0d, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x72,
122 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2a, 0x67, 0x6f, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65,
123 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2e, 0x69, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
124 0x2f, 0x6f, 0x74, 0x6c, 0x70, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2f, 0x76,
125 0x31, 0xaa, 0x02, 0x1f, 0x4f, 0x70, 0x65, 0x6e, 0x54, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72,
126 0x79, 0x2e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
127 0x2e, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
128 }
129
130 var (
131 file_opentelemetry_proto_resource_v1_resource_proto_rawDescOnce sync.Once
132 file_opentelemetry_proto_resource_v1_resource_proto_rawDescData = file_opentelemetry_proto_resource_v1_resource_proto_rawDesc
133 )
134
135 func file_opentelemetry_proto_resource_v1_resource_proto_rawDescGZIP() []byte {
136 file_opentelemetry_proto_resource_v1_resource_proto_rawDescOnce.Do(func() {
137 file_opentelemetry_proto_resource_v1_resource_proto_rawDescData = protoimpl.X.CompressGZIP(file_opentelemetry_proto_resource_v1_resource_proto_rawDescData)
138 })
139 return file_opentelemetry_proto_resource_v1_resource_proto_rawDescData
140 }
141
142 var file_opentelemetry_proto_resource_v1_resource_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
143 var file_opentelemetry_proto_resource_v1_resource_proto_goTypes = []interface{}{
144 (*Resource)(nil),
145 (*v1.KeyValue)(nil),
146 }
147 var file_opentelemetry_proto_resource_v1_resource_proto_depIdxs = []int32{
148 1,
149 1,
150 1,
151 1,
152 1,
153 0,
154 }
155
156 func init() { file_opentelemetry_proto_resource_v1_resource_proto_init() }
157 func file_opentelemetry_proto_resource_v1_resource_proto_init() {
158 if File_opentelemetry_proto_resource_v1_resource_proto != nil {
159 return
160 }
161 if !protoimpl.UnsafeEnabled {
162 file_opentelemetry_proto_resource_v1_resource_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
163 switch v := v.(*Resource); i {
164 case 0:
165 return &v.state
166 case 1:
167 return &v.sizeCache
168 case 2:
169 return &v.unknownFields
170 default:
171 return nil
172 }
173 }
174 }
175 type x struct{}
176 out := protoimpl.TypeBuilder{
177 File: protoimpl.DescBuilder{
178 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
179 RawDescriptor: file_opentelemetry_proto_resource_v1_resource_proto_rawDesc,
180 NumEnums: 0,
181 NumMessages: 1,
182 NumExtensions: 0,
183 NumServices: 0,
184 },
185 GoTypes: file_opentelemetry_proto_resource_v1_resource_proto_goTypes,
186 DependencyIndexes: file_opentelemetry_proto_resource_v1_resource_proto_depIdxs,
187 MessageInfos: file_opentelemetry_proto_resource_v1_resource_proto_msgTypes,
188 }.Build()
189 File_opentelemetry_proto_resource_v1_resource_proto = out.File
190 file_opentelemetry_proto_resource_v1_resource_proto_rawDesc = nil
191 file_opentelemetry_proto_resource_v1_resource_proto_goTypes = nil
192 file_opentelemetry_proto_resource_v1_resource_proto_depIdxs = nil
193 }
194
View as plain text