blob: b7545b03b9fe9424e6b3c6519b715b77f9f66739 [file] [log] [blame]
Abhay Kumara61c5222025-11-10 07:32:50 +00001// 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
21package v1
22
23import (
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
31const (
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.
39type 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 Attributes []*v1.KeyValue `protobuf:"bytes,1,rep,name=attributes,proto3" json:"attributes,omitempty"`
48 // dropped_attributes_count is the number of dropped attributes. If the value is 0, then
49 // no attributes were dropped.
50 DroppedAttributesCount uint32 `protobuf:"varint,2,opt,name=dropped_attributes_count,json=droppedAttributesCount,proto3" json:"dropped_attributes_count,omitempty"`
51}
52
53func (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
62func (x *Resource) String() string {
63 return protoimpl.X.MessageStringOf(x)
64}
65
66func (*Resource) ProtoMessage() {}
67
68func (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// Deprecated: Use Resource.ProtoReflect.Descriptor instead.
81func (*Resource) Descriptor() ([]byte, []int) {
82 return file_opentelemetry_proto_resource_v1_resource_proto_rawDescGZIP(), []int{0}
83}
84
85func (x *Resource) GetAttributes() []*v1.KeyValue {
86 if x != nil {
87 return x.Attributes
88 }
89 return nil
90}
91
92func (x *Resource) GetDroppedAttributesCount() uint32 {
93 if x != nil {
94 return x.DroppedAttributesCount
95 }
96 return 0
97}
98
99var File_opentelemetry_proto_resource_v1_resource_proto protoreflect.FileDescriptor
100
101var 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
130var (
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
135func 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
142var file_opentelemetry_proto_resource_v1_resource_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
143var file_opentelemetry_proto_resource_v1_resource_proto_goTypes = []interface{}{
144 (*Resource)(nil), // 0: opentelemetry.proto.resource.v1.Resource
145 (*v1.KeyValue)(nil), // 1: opentelemetry.proto.common.v1.KeyValue
146}
147var file_opentelemetry_proto_resource_v1_resource_proto_depIdxs = []int32{
148 1, // 0: opentelemetry.proto.resource.v1.Resource.attributes:type_name -> opentelemetry.proto.common.v1.KeyValue
149 1, // [1:1] is the sub-list for method output_type
150 1, // [1:1] is the sub-list for method input_type
151 1, // [1:1] is the sub-list for extension type_name
152 1, // [1:1] is the sub-list for extension extendee
153 0, // [0:1] is the sub-list for field type_name
154}
155
156func init() { file_opentelemetry_proto_resource_v1_resource_proto_init() }
157func 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}