Debian Codegraph @

otlp/resource/v1/resource.pb.go

raw
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/resource/v1/resource.proto
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 // Verify that this generated code is sufficiently up-to-date.
33 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
34 // Verify that runtime/protoimpl is sufficiently up-to-date.
35 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
36 )
37
38 // Resource information.
39 type Resource struct {
40 state protoimpl.MessageState
41 sizeCache protoimpl.SizeCache
42 unknownFields protoimpl.UnknownFields
43
44 // Set of attributes that describe the resource.
45 // Attribute keys MUST be unique (it is not allowed to have more than one
46 // attribute with the same key).
47 // The behavior of software that receives duplicated keys can be unpredictable.
48 Attributes []*v1.KeyValue `protobuf:"bytes,1,rep,name=attributes,proto3" json:"attributes,omitempty"`
49 // The number of dropped attributes. If the value is 0, then
50 // no attributes were dropped.
51 DroppedAttributesCount uint32 `protobuf:"varint,2,opt,name=dropped_attributes_count,json=droppedAttributesCount,proto3" json:"dropped_attributes_count,omitempty"`
52 // Set of entities that participate in this Resource.
53 //
54 // Note: keys in the references MUST exist in attributes of this message.
55 //
56 // Status: [Development]
57 EntityRefs []*v1.EntityRef `protobuf:"bytes,3,rep,name=entity_refs,json=entityRefs,proto3" json:"entity_refs,omitempty"`
58 }
59
60 func (x *Resource) Reset() {
61 *x = Resource{}
62 if protoimpl.UnsafeEnabled {
63 mi := &file_opentelemetry_proto_resource_v1_resource_proto_msgTypes[0]
64 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
65 ms.StoreMessageInfo(mi)
66 }
67 }
68
69 func (x *Resource) String() string {
70 return protoimpl.X.MessageStringOf(x)
71 }
72
73 func (*Resource) ProtoMessage() {}
74
75 func (x *Resource) ProtoReflect() protoreflect.Message {
76 mi := &file_opentelemetry_proto_resource_v1_resource_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 Resource.ProtoReflect.Descriptor instead.
88 func (*Resource) Descriptor() ([]byte, []int) {
89 return file_opentelemetry_proto_resource_v1_resource_proto_rawDescGZIP(), []int{0}
90 }
91
92 func (x *Resource) GetAttributes() []*v1.KeyValue {
93 if x != nil {
94 return x.Attributes
95 }
96 return nil
97 }
98
99 func (x *Resource) GetDroppedAttributesCount() uint32 {
100 if x != nil {
101 return x.DroppedAttributesCount
102 }
103 return 0
104 }
105
106 func (x *Resource) GetEntityRefs() []*v1.EntityRef {
107 if x != nil {
108 return x.EntityRefs
109 }
110 return nil
111 }
112
113 var File_opentelemetry_proto_resource_v1_resource_proto protoreflect.FileDescriptor
114
115 var file_opentelemetry_proto_resource_v1_resource_proto_rawDesc = []byte{
116 0x0a, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2f,
117 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2f, 0x76,
118 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
119 0x12, 0x1f, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2e,
120 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x76,
121 0x31, 0x1a, 0x2a, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79,
122 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2f, 0x76, 0x31,
123 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd8, 0x01,
124 0x0a, 0x08, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x47, 0x0a, 0x0a, 0x61, 0x74,
125 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27,
126 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2e, 0x70,
127 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x76, 0x31, 0x2e, 0x4b,
128 0x65, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75,
129 0x74, 0x65, 0x73, 0x12, 0x38, 0x0a, 0x18, 0x64, 0x72, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x5f, 0x61,
130 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18,
131 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x16, 0x64, 0x72, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x41, 0x74,
132 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x49, 0x0a,
133 0x0b, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x72, 0x65, 0x66, 0x73, 0x18, 0x03, 0x20, 0x03,
134 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74,
135 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e,
136 0x76, 0x31, 0x2e, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x66, 0x52, 0x0a, 0x65, 0x6e,
137 0x74, 0x69, 0x74, 0x79, 0x52, 0x65, 0x66, 0x73, 0x42, 0x83, 0x01, 0x0a, 0x22, 0x69, 0x6f, 0x2e,
138 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2e, 0x70, 0x72,
139 0x6f, 0x74, 0x6f, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x42,
140 0x0d, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01,
141 0x5a, 0x2a, 0x67, 0x6f, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x74, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74,
142 0x72, 0x79, 0x2e, 0x69, 0x6f, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x6f, 0x74, 0x6c, 0x70,
143 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2f, 0x76, 0x31, 0xaa, 0x02, 0x1f, 0x4f,
144 0x70, 0x65, 0x6e, 0x54, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x74, 0x72, 0x79, 0x2e, 0x50, 0x72, 0x6f,
145 0x74, 0x6f, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x56, 0x31, 0x62, 0x06,
146 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
147 }
148
149 var (
150 file_opentelemetry_proto_resource_v1_resource_proto_rawDescOnce sync.Once
151 file_opentelemetry_proto_resource_v1_resource_proto_rawDescData = file_opentelemetry_proto_resource_v1_resource_proto_rawDesc
152 )
153
154 func file_opentelemetry_proto_resource_v1_resource_proto_rawDescGZIP() []byte {
155 file_opentelemetry_proto_resource_v1_resource_proto_rawDescOnce.Do(func() {
156 file_opentelemetry_proto_resource_v1_resource_proto_rawDescData = protoimpl.X.CompressGZIP(file_opentelemetry_proto_resource_v1_resource_proto_rawDescData)
157 })
158 return file_opentelemetry_proto_resource_v1_resource_proto_rawDescData
159 }
160
161 var file_opentelemetry_proto_resource_v1_resource_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
162 var file_opentelemetry_proto_resource_v1_resource_proto_goTypes = []interface{}{
163 (*Resource)(nil), // 0: opentelemetry.proto.resource.v1.Resource
164 (*v1.KeyValue)(nil), // 1: opentelemetry.proto.common.v1.KeyValue
165 (*v1.EntityRef)(nil), // 2: opentelemetry.proto.common.v1.EntityRef
166 }
167 var file_opentelemetry_proto_resource_v1_resource_proto_depIdxs = []int32{
168 1, // 0: opentelemetry.proto.resource.v1.Resource.attributes:type_name -> opentelemetry.proto.common.v1.KeyValue
169 2, // 1: opentelemetry.proto.resource.v1.Resource.entity_refs:type_name -> opentelemetry.proto.common.v1.EntityRef
170 2, // [2:2] is the sub-list for method output_type
171 2, // [2:2] is the sub-list for method input_type
172 2, // [2:2] is the sub-list for extension type_name
173 2, // [2:2] is the sub-list for extension extendee
174 0, // [0:2] is the sub-list for field type_name
175 }
176
177 func init() { file_opentelemetry_proto_resource_v1_resource_proto_init() }
178 func file_opentelemetry_proto_resource_v1_resource_proto_init() {
179 if File_opentelemetry_proto_resource_v1_resource_proto != nil {
180 return
181 }
182 if !protoimpl.UnsafeEnabled {
183 file_opentelemetry_proto_resource_v1_resource_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
184 switch v := v.(*Resource); i {
185 case 0:
186 return &v.state
187 case 1:
188 return &v.sizeCache
189 case 2:
190 return &v.unknownFields
191 default:
192 return nil
193 }
194 }
195 }
196 type x struct{}
197 out := protoimpl.TypeBuilder{
198 File: protoimpl.DescBuilder{
199 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
200 RawDescriptor: file_opentelemetry_proto_resource_v1_resource_proto_rawDesc,
201 NumEnums: 0,
202 NumMessages: 1,
203 NumExtensions: 0,
204 NumServices: 0,
205 },
206 GoTypes: file_opentelemetry_proto_resource_v1_resource_proto_goTypes,
207 DependencyIndexes: file_opentelemetry_proto_resource_v1_resource_proto_depIdxs,
208 MessageInfos: file_opentelemetry_proto_resource_v1_resource_proto_msgTypes,
209 }.Build()
210 File_opentelemetry_proto_resource_v1_resource_proto = out.File
211 file_opentelemetry_proto_resource_v1_resource_proto_rawDesc = nil
212 file_opentelemetry_proto_resource_v1_resource_proto_goTypes = nil
213 file_opentelemetry_proto_resource_v1_resource_proto_depIdxs = nil
214 }