4 #ifndef GOOGLE_PROTOBUF_INCLUDED_opentelemetry_2fproto_2fresource_2fv1_2fresource_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_opentelemetry_2fproto_2fresource_2fv1_2fresource_2eproto
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3021000
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
16 #if 3021006 < PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
22 #include <google/protobuf/port_undef.inc>
23 #include <google/protobuf/io/coded_stream.h>
24 #include <google/protobuf/arena.h>
25 #include <google/protobuf/arenastring.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/metadata_lite.h>
28 #include <google/protobuf/generated_message_reflection.h>
29 #include <google/protobuf/message.h>
30 #include <google/protobuf/repeated_field.h>
31 #include <google/protobuf/extension_set.h>
32 #include <google/protobuf/unknown_field_set.h>
33 #include "opentelemetry/proto/common/v1/common.pb.h"
35 #include <google/protobuf/port_def.inc>
36 #define PROTOBUF_INTERNAL_EXPORT_opentelemetry_2fproto_2fresource_2fv1_2fresource_2eproto
37 PROTOBUF_NAMESPACE_OPEN
41 PROTOBUF_NAMESPACE_CLOSE
53 struct ResourceDefaultTypeInternal;
59 PROTOBUF_NAMESPACE_OPEN
61 PROTOBUF_NAMESPACE_CLOSE
70 public ::PROTOBUF_NAMESPACE_ID::Message {
74 explicit PROTOBUF_CONSTEXPR
Resource(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
87 if (
this == &from)
return *
this;
88 if (GetOwningArena() == from.GetOwningArena()
89 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
90 && GetOwningArena() !=
nullptr
100 static const ::PROTOBUF_NAMESPACE_ID::Descriptor*
descriptor() {
113 return reinterpret_cast<const Resource*
>(
123 if (other ==
this)
return;
124 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
125 if (GetOwningArena() !=
nullptr &&
126 GetOwningArena() == other->GetOwningArena()) {
127 #else // PROTOBUF_FORCE_COPY_IN_SWAP
128 if (GetOwningArena() == other->GetOwningArena()) {
129 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
132 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(
this, other);
136 if (other ==
this)
return;
137 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
143 Resource*
New(::PROTOBUF_NAMESPACE_ID::Arena* arena =
nullptr) const final {
144 return CreateMaybeMessage<Resource>(arena);
146 using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
148 using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
150 Resource::MergeImpl(*
this, from);
153 static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
155 PROTOBUF_ATTRIBUTE_REINITIALIZES
void Clear() final;
161 uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
165 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned);
167 void SetCachedSize(
int size)
const final;
171 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
172 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
173 return "opentelemetry.proto.resource.v1.Resource";
176 explicit Resource(::PROTOBUF_NAMESPACE_ID::Arena* arena,
177 bool is_message_owned =
false);
181 const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*
GetClassData() const final;
183 ::PROTOBUF_NAMESPACE_ID::Metadata
GetMetadata() const final;
197 int _internal_attributes_size()
const;
201 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::common::v1::KeyValue >*
204 const ::opentelemetry::proto::common::v1::KeyValue& _internal_attributes(
int index)
const;
207 const ::opentelemetry::proto::common::v1::KeyValue&
attributes(
int index)
const;
209 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::common::v1::KeyValue >&
215 int _internal_entity_refs_size()
const;
219 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::common::v1::EntityRef >*
222 const ::opentelemetry::proto::common::v1::EntityRef& _internal_entity_refs(
int index)
const;
225 const ::opentelemetry::proto::common::v1::EntityRef&
entity_refs(
int index)
const;
227 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::common::v1::EntityRef >&
235 uint32_t _internal_dropped_attributes_count()
const;
236 void _internal_set_dropped_attributes_count(uint32_t value);
243 template <
typename T>
friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
244 typedef void InternalArenaConstructable_;
245 typedef void DestructorSkippable_;
247 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::common::v1::KeyValue > attributes_;
248 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::common::v1::EntityRef > entity_refs_;
249 uint32_t dropped_attributes_count_;
250 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
253 friend struct ::TableStruct_opentelemetry_2fproto_2fresource_2fv1_2fresource_2eproto;
261 #pragma GCC diagnostic push
262 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
267 inline int Resource::_internal_attributes_size()
const {
268 return _impl_.attributes_.size();
271 return _internal_attributes_size();
275 return _impl_.attributes_.Mutable(index);
277 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::common::v1::KeyValue >*
280 return &
_impl_.attributes_;
282 inline const ::opentelemetry::proto::common::v1::KeyValue& Resource::_internal_attributes(
int index)
const {
283 return _impl_.attributes_.Get(index);
287 return _internal_attributes(index);
289 inline ::opentelemetry::proto::common::v1::KeyValue* Resource::_internal_add_attributes() {
290 return _impl_.attributes_.Add();
297 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::common::v1::KeyValue >&
300 return _impl_.attributes_;
305 _impl_.dropped_attributes_count_ = 0u;
307 inline uint32_t Resource::_internal_dropped_attributes_count()
const {
308 return _impl_.dropped_attributes_count_;
312 return _internal_dropped_attributes_count();
314 inline void Resource::_internal_set_dropped_attributes_count(uint32_t value) {
316 _impl_.dropped_attributes_count_ = value;
319 _internal_set_dropped_attributes_count(value);
324 inline int Resource::_internal_entity_refs_size()
const {
325 return _impl_.entity_refs_.size();
328 return _internal_entity_refs_size();
332 return _impl_.entity_refs_.Mutable(index);
334 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::common::v1::EntityRef >*
337 return &
_impl_.entity_refs_;
339 inline const ::opentelemetry::proto::common::v1::EntityRef& Resource::_internal_entity_refs(
int index)
const {
340 return _impl_.entity_refs_.Get(index);
344 return _internal_entity_refs(index);
346 inline ::opentelemetry::proto::common::v1::EntityRef* Resource::_internal_add_entity_refs() {
347 return _impl_.entity_refs_.Add();
354 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::opentelemetry::proto::common::v1::EntityRef >&
357 return _impl_.entity_refs_;
361 #pragma GCC diagnostic pop
373 #include <google/protobuf/port_undef.inc>
374 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_opentelemetry_2fproto_2fresource_2fv1_2fresource_2eproto