| // Generated by the protocol buffer compiler. DO NOT EDIT! |
| // source: protos/perfetto/common/data_source_descriptor.proto |
| |
| #ifndef GOOGLE_PROTOBUF_INCLUDED_protos_2fperfetto_2fcommon_2fdata_5fsource_5fdescriptor_2eproto |
| #define GOOGLE_PROTOBUF_INCLUDED_protos_2fperfetto_2fcommon_2fdata_5fsource_5fdescriptor_2eproto |
| |
| #include <limits> |
| #include <string> |
| |
| #include <google/protobuf/port_def.inc> |
| #if PROTOBUF_VERSION < 3009000 |
| #error This file was generated by a newer version of protoc which is |
| #error incompatible with your Protocol Buffer headers. Please update |
| #error your headers. |
| #endif |
| #if 3009001 < PROTOBUF_MIN_PROTOC_VERSION |
| #error This file was generated by an older version of protoc which is |
| #error incompatible with your Protocol Buffer headers. Please |
| #error regenerate this file with a newer version of protoc. |
| #endif |
| |
| #include <google/protobuf/port_undef.inc> |
| #include <google/protobuf/io/coded_stream.h> |
| #include <google/protobuf/arena.h> |
| #include <google/protobuf/arenastring.h> |
| #include <google/protobuf/generated_message_table_driven.h> |
| #include <google/protobuf/generated_message_util.h> |
| #include <google/protobuf/inlined_string_field.h> |
| #include <google/protobuf/metadata_lite.h> |
| #include <google/protobuf/message_lite.h> |
| #include <google/protobuf/repeated_field.h> // IWYU pragma: export |
| #include <google/protobuf/extension_set.h> // IWYU pragma: export |
| #include "protos/perfetto/common/gpu_counter_descriptor.pb.h" |
| #include "protos/perfetto/common/track_event_descriptor.pb.h" |
| // @@protoc_insertion_point(includes) |
| #include <google/protobuf/port_def.inc> |
| #define PROTOBUF_INTERNAL_EXPORT_protos_2fperfetto_2fcommon_2fdata_5fsource_5fdescriptor_2eproto |
| PROTOBUF_NAMESPACE_OPEN |
| namespace internal { |
| class AnyMetadata; |
| } // namespace internal |
| PROTOBUF_NAMESPACE_CLOSE |
| |
| // Internal implementation detail -- do not use these members. |
| struct TableStruct_protos_2fperfetto_2fcommon_2fdata_5fsource_5fdescriptor_2eproto { |
| static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] |
| PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
| static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] |
| PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
| static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] |
| PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
| static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; |
| static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; |
| static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; |
| }; |
| namespace perfetto { |
| namespace protos { |
| class DataSourceDescriptor; |
| class DataSourceDescriptorDefaultTypeInternal; |
| extern DataSourceDescriptorDefaultTypeInternal _DataSourceDescriptor_default_instance_; |
| } // namespace protos |
| } // namespace perfetto |
| PROTOBUF_NAMESPACE_OPEN |
| template<> ::perfetto::protos::DataSourceDescriptor* Arena::CreateMaybeMessage<::perfetto::protos::DataSourceDescriptor>(Arena*); |
| PROTOBUF_NAMESPACE_CLOSE |
| namespace perfetto { |
| namespace protos { |
| |
| // =================================================================== |
| |
| class DataSourceDescriptor : |
| public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:perfetto.protos.DataSourceDescriptor) */ { |
| public: |
| DataSourceDescriptor(); |
| virtual ~DataSourceDescriptor(); |
| |
| DataSourceDescriptor(const DataSourceDescriptor& from); |
| DataSourceDescriptor(DataSourceDescriptor&& from) noexcept |
| : DataSourceDescriptor() { |
| *this = ::std::move(from); |
| } |
| |
| inline DataSourceDescriptor& operator=(const DataSourceDescriptor& from) { |
| CopyFrom(from); |
| return *this; |
| } |
| inline DataSourceDescriptor& operator=(DataSourceDescriptor&& from) noexcept { |
| if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
| if (this != &from) InternalSwap(&from); |
| } else { |
| CopyFrom(from); |
| } |
| return *this; |
| } |
| |
| inline const std::string& unknown_fields() const { |
| return _internal_metadata_.unknown_fields(); |
| } |
| inline std::string* mutable_unknown_fields() { |
| return _internal_metadata_.mutable_unknown_fields(); |
| } |
| |
| static const DataSourceDescriptor& default_instance(); |
| |
| static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
| static inline const DataSourceDescriptor* internal_default_instance() { |
| return reinterpret_cast<const DataSourceDescriptor*>( |
| &_DataSourceDescriptor_default_instance_); |
| } |
| static constexpr int kIndexInFileMessages = |
| 0; |
| |
| friend void swap(DataSourceDescriptor& a, DataSourceDescriptor& b) { |
| a.Swap(&b); |
| } |
| inline void Swap(DataSourceDescriptor* other) { |
| if (other == this) return; |
| InternalSwap(other); |
| } |
| |
| // implements Message ---------------------------------------------- |
| |
| inline DataSourceDescriptor* New() const final { |
| return CreateMaybeMessage<DataSourceDescriptor>(nullptr); |
| } |
| |
| DataSourceDescriptor* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
| return CreateMaybeMessage<DataSourceDescriptor>(arena); |
| } |
| void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) |
| final; |
| void CopyFrom(const DataSourceDescriptor& from); |
| void MergeFrom(const DataSourceDescriptor& from); |
| PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
| bool IsInitialized() const final; |
| |
| size_t ByteSizeLong() const final; |
| #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
| #else |
| bool MergePartialFromCodedStream( |
| ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
| #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
| void SerializeWithCachedSizes( |
| ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
| void DiscardUnknownFields(); |
| int GetCachedSize() const final { return _cached_size_.Get(); } |
| |
| private: |
| inline void SharedCtor(); |
| inline void SharedDtor(); |
| void SetCachedSize(int size) const; |
| void InternalSwap(DataSourceDescriptor* other); |
| friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
| static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
| return "perfetto.protos.DataSourceDescriptor"; |
| } |
| private: |
| inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
| return nullptr; |
| } |
| inline void* MaybeArenaPtr() const { |
| return nullptr; |
| } |
| public: |
| |
| std::string GetTypeName() const final; |
| |
| // nested types ---------------------------------------------------- |
| |
| // accessors ------------------------------------------------------- |
| |
| enum : int { |
| kNameFieldNumber = 1, |
| kGpuCounterDescriptorFieldNumber = 5, |
| kTrackEventDescriptorFieldNumber = 6, |
| kIdFieldNumber = 7, |
| kWillNotifyOnStopFieldNumber = 2, |
| kWillNotifyOnStartFieldNumber = 3, |
| kHandlesIncrementalStateClearFieldNumber = 4, |
| }; |
| // optional string name = 1; |
| bool has_name() const; |
| void clear_name(); |
| const std::string& name() const; |
| void set_name(const std::string& value); |
| void set_name(std::string&& value); |
| void set_name(const char* value); |
| void set_name(const char* value, size_t size); |
| std::string* mutable_name(); |
| std::string* release_name(); |
| void set_allocated_name(std::string* name); |
| |
| // optional .perfetto.protos.GpuCounterDescriptor gpu_counter_descriptor = 5 [lazy = true]; |
| bool has_gpu_counter_descriptor() const; |
| void clear_gpu_counter_descriptor(); |
| const ::perfetto::protos::GpuCounterDescriptor& gpu_counter_descriptor() const; |
| ::perfetto::protos::GpuCounterDescriptor* release_gpu_counter_descriptor(); |
| ::perfetto::protos::GpuCounterDescriptor* mutable_gpu_counter_descriptor(); |
| void set_allocated_gpu_counter_descriptor(::perfetto::protos::GpuCounterDescriptor* gpu_counter_descriptor); |
| |
| // optional .perfetto.protos.TrackEventDescriptor track_event_descriptor = 6 [lazy = true]; |
| bool has_track_event_descriptor() const; |
| void clear_track_event_descriptor(); |
| const ::perfetto::protos::TrackEventDescriptor& track_event_descriptor() const; |
| ::perfetto::protos::TrackEventDescriptor* release_track_event_descriptor(); |
| ::perfetto::protos::TrackEventDescriptor* mutable_track_event_descriptor(); |
| void set_allocated_track_event_descriptor(::perfetto::protos::TrackEventDescriptor* track_event_descriptor); |
| |
| // optional uint64 id = 7; |
| bool has_id() const; |
| void clear_id(); |
| ::PROTOBUF_NAMESPACE_ID::uint64 id() const; |
| void set_id(::PROTOBUF_NAMESPACE_ID::uint64 value); |
| |
| // optional bool will_notify_on_stop = 2; |
| bool has_will_notify_on_stop() const; |
| void clear_will_notify_on_stop(); |
| bool will_notify_on_stop() const; |
| void set_will_notify_on_stop(bool value); |
| |
| // optional bool will_notify_on_start = 3; |
| bool has_will_notify_on_start() const; |
| void clear_will_notify_on_start(); |
| bool will_notify_on_start() const; |
| void set_will_notify_on_start(bool value); |
| |
| // optional bool handles_incremental_state_clear = 4; |
| bool has_handles_incremental_state_clear() const; |
| void clear_handles_incremental_state_clear(); |
| bool handles_incremental_state_clear() const; |
| void set_handles_incremental_state_clear(bool value); |
| |
| // @@protoc_insertion_point(class_scope:perfetto.protos.DataSourceDescriptor) |
| private: |
| class _Internal; |
| |
| ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArenaLite _internal_metadata_; |
| ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
| mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
| ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; |
| ::perfetto::protos::GpuCounterDescriptor* gpu_counter_descriptor_; |
| ::perfetto::protos::TrackEventDescriptor* track_event_descriptor_; |
| ::PROTOBUF_NAMESPACE_ID::uint64 id_; |
| bool will_notify_on_stop_; |
| bool will_notify_on_start_; |
| bool handles_incremental_state_clear_; |
| friend struct ::TableStruct_protos_2fperfetto_2fcommon_2fdata_5fsource_5fdescriptor_2eproto; |
| }; |
| // =================================================================== |
| |
| |
| // =================================================================== |
| |
| #ifdef __GNUC__ |
| #pragma GCC diagnostic push |
| #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
| #endif // __GNUC__ |
| // DataSourceDescriptor |
| |
| // optional string name = 1; |
| inline bool DataSourceDescriptor::has_name() const { |
| return (_has_bits_[0] & 0x00000001u) != 0; |
| } |
| inline void DataSourceDescriptor::clear_name() { |
| name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| _has_bits_[0] &= ~0x00000001u; |
| } |
| inline const std::string& DataSourceDescriptor::name() const { |
| // @@protoc_insertion_point(field_get:perfetto.protos.DataSourceDescriptor.name) |
| return name_.GetNoArena(); |
| } |
| inline void DataSourceDescriptor::set_name(const std::string& value) { |
| _has_bits_[0] |= 0x00000001u; |
| name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); |
| // @@protoc_insertion_point(field_set:perfetto.protos.DataSourceDescriptor.name) |
| } |
| inline void DataSourceDescriptor::set_name(std::string&& value) { |
| _has_bits_[0] |= 0x00000001u; |
| name_.SetNoArena( |
| &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
| // @@protoc_insertion_point(field_set_rvalue:perfetto.protos.DataSourceDescriptor.name) |
| } |
| inline void DataSourceDescriptor::set_name(const char* value) { |
| GOOGLE_DCHECK(value != nullptr); |
| _has_bits_[0] |= 0x00000001u; |
| name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
| // @@protoc_insertion_point(field_set_char:perfetto.protos.DataSourceDescriptor.name) |
| } |
| inline void DataSourceDescriptor::set_name(const char* value, size_t size) { |
| _has_bits_[0] |= 0x00000001u; |
| name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
| ::std::string(reinterpret_cast<const char*>(value), size)); |
| // @@protoc_insertion_point(field_set_pointer:perfetto.protos.DataSourceDescriptor.name) |
| } |
| inline std::string* DataSourceDescriptor::mutable_name() { |
| _has_bits_[0] |= 0x00000001u; |
| // @@protoc_insertion_point(field_mutable:perfetto.protos.DataSourceDescriptor.name) |
| return name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| } |
| inline std::string* DataSourceDescriptor::release_name() { |
| // @@protoc_insertion_point(field_release:perfetto.protos.DataSourceDescriptor.name) |
| if (!has_name()) { |
| return nullptr; |
| } |
| _has_bits_[0] &= ~0x00000001u; |
| return name_.ReleaseNonDefaultNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| } |
| inline void DataSourceDescriptor::set_allocated_name(std::string* name) { |
| if (name != nullptr) { |
| _has_bits_[0] |= 0x00000001u; |
| } else { |
| _has_bits_[0] &= ~0x00000001u; |
| } |
| name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name); |
| // @@protoc_insertion_point(field_set_allocated:perfetto.protos.DataSourceDescriptor.name) |
| } |
| |
| // optional uint64 id = 7; |
| inline bool DataSourceDescriptor::has_id() const { |
| return (_has_bits_[0] & 0x00000008u) != 0; |
| } |
| inline void DataSourceDescriptor::clear_id() { |
| id_ = PROTOBUF_ULONGLONG(0); |
| _has_bits_[0] &= ~0x00000008u; |
| } |
| inline ::PROTOBUF_NAMESPACE_ID::uint64 DataSourceDescriptor::id() const { |
| // @@protoc_insertion_point(field_get:perfetto.protos.DataSourceDescriptor.id) |
| return id_; |
| } |
| inline void DataSourceDescriptor::set_id(::PROTOBUF_NAMESPACE_ID::uint64 value) { |
| _has_bits_[0] |= 0x00000008u; |
| id_ = value; |
| // @@protoc_insertion_point(field_set:perfetto.protos.DataSourceDescriptor.id) |
| } |
| |
| // optional bool will_notify_on_stop = 2; |
| inline bool DataSourceDescriptor::has_will_notify_on_stop() const { |
| return (_has_bits_[0] & 0x00000010u) != 0; |
| } |
| inline void DataSourceDescriptor::clear_will_notify_on_stop() { |
| will_notify_on_stop_ = false; |
| _has_bits_[0] &= ~0x00000010u; |
| } |
| inline bool DataSourceDescriptor::will_notify_on_stop() const { |
| // @@protoc_insertion_point(field_get:perfetto.protos.DataSourceDescriptor.will_notify_on_stop) |
| return will_notify_on_stop_; |
| } |
| inline void DataSourceDescriptor::set_will_notify_on_stop(bool value) { |
| _has_bits_[0] |= 0x00000010u; |
| will_notify_on_stop_ = value; |
| // @@protoc_insertion_point(field_set:perfetto.protos.DataSourceDescriptor.will_notify_on_stop) |
| } |
| |
| // optional bool will_notify_on_start = 3; |
| inline bool DataSourceDescriptor::has_will_notify_on_start() const { |
| return (_has_bits_[0] & 0x00000020u) != 0; |
| } |
| inline void DataSourceDescriptor::clear_will_notify_on_start() { |
| will_notify_on_start_ = false; |
| _has_bits_[0] &= ~0x00000020u; |
| } |
| inline bool DataSourceDescriptor::will_notify_on_start() const { |
| // @@protoc_insertion_point(field_get:perfetto.protos.DataSourceDescriptor.will_notify_on_start) |
| return will_notify_on_start_; |
| } |
| inline void DataSourceDescriptor::set_will_notify_on_start(bool value) { |
| _has_bits_[0] |= 0x00000020u; |
| will_notify_on_start_ = value; |
| // @@protoc_insertion_point(field_set:perfetto.protos.DataSourceDescriptor.will_notify_on_start) |
| } |
| |
| // optional bool handles_incremental_state_clear = 4; |
| inline bool DataSourceDescriptor::has_handles_incremental_state_clear() const { |
| return (_has_bits_[0] & 0x00000040u) != 0; |
| } |
| inline void DataSourceDescriptor::clear_handles_incremental_state_clear() { |
| handles_incremental_state_clear_ = false; |
| _has_bits_[0] &= ~0x00000040u; |
| } |
| inline bool DataSourceDescriptor::handles_incremental_state_clear() const { |
| // @@protoc_insertion_point(field_get:perfetto.protos.DataSourceDescriptor.handles_incremental_state_clear) |
| return handles_incremental_state_clear_; |
| } |
| inline void DataSourceDescriptor::set_handles_incremental_state_clear(bool value) { |
| _has_bits_[0] |= 0x00000040u; |
| handles_incremental_state_clear_ = value; |
| // @@protoc_insertion_point(field_set:perfetto.protos.DataSourceDescriptor.handles_incremental_state_clear) |
| } |
| |
| // optional .perfetto.protos.GpuCounterDescriptor gpu_counter_descriptor = 5 [lazy = true]; |
| inline bool DataSourceDescriptor::has_gpu_counter_descriptor() const { |
| return (_has_bits_[0] & 0x00000002u) != 0; |
| } |
| inline const ::perfetto::protos::GpuCounterDescriptor& DataSourceDescriptor::gpu_counter_descriptor() const { |
| const ::perfetto::protos::GpuCounterDescriptor* p = gpu_counter_descriptor_; |
| // @@protoc_insertion_point(field_get:perfetto.protos.DataSourceDescriptor.gpu_counter_descriptor) |
| return p != nullptr ? *p : *reinterpret_cast<const ::perfetto::protos::GpuCounterDescriptor*>( |
| &::perfetto::protos::_GpuCounterDescriptor_default_instance_); |
| } |
| inline ::perfetto::protos::GpuCounterDescriptor* DataSourceDescriptor::release_gpu_counter_descriptor() { |
| // @@protoc_insertion_point(field_release:perfetto.protos.DataSourceDescriptor.gpu_counter_descriptor) |
| _has_bits_[0] &= ~0x00000002u; |
| ::perfetto::protos::GpuCounterDescriptor* temp = gpu_counter_descriptor_; |
| gpu_counter_descriptor_ = nullptr; |
| return temp; |
| } |
| inline ::perfetto::protos::GpuCounterDescriptor* DataSourceDescriptor::mutable_gpu_counter_descriptor() { |
| _has_bits_[0] |= 0x00000002u; |
| if (gpu_counter_descriptor_ == nullptr) { |
| auto* p = CreateMaybeMessage<::perfetto::protos::GpuCounterDescriptor>(GetArenaNoVirtual()); |
| gpu_counter_descriptor_ = p; |
| } |
| // @@protoc_insertion_point(field_mutable:perfetto.protos.DataSourceDescriptor.gpu_counter_descriptor) |
| return gpu_counter_descriptor_; |
| } |
| inline void DataSourceDescriptor::set_allocated_gpu_counter_descriptor(::perfetto::protos::GpuCounterDescriptor* gpu_counter_descriptor) { |
| ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); |
| if (message_arena == nullptr) { |
| delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(gpu_counter_descriptor_); |
| } |
| if (gpu_counter_descriptor) { |
| ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; |
| if (message_arena != submessage_arena) { |
| gpu_counter_descriptor = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
| message_arena, gpu_counter_descriptor, submessage_arena); |
| } |
| _has_bits_[0] |= 0x00000002u; |
| } else { |
| _has_bits_[0] &= ~0x00000002u; |
| } |
| gpu_counter_descriptor_ = gpu_counter_descriptor; |
| // @@protoc_insertion_point(field_set_allocated:perfetto.protos.DataSourceDescriptor.gpu_counter_descriptor) |
| } |
| |
| // optional .perfetto.protos.TrackEventDescriptor track_event_descriptor = 6 [lazy = true]; |
| inline bool DataSourceDescriptor::has_track_event_descriptor() const { |
| return (_has_bits_[0] & 0x00000004u) != 0; |
| } |
| inline const ::perfetto::protos::TrackEventDescriptor& DataSourceDescriptor::track_event_descriptor() const { |
| const ::perfetto::protos::TrackEventDescriptor* p = track_event_descriptor_; |
| // @@protoc_insertion_point(field_get:perfetto.protos.DataSourceDescriptor.track_event_descriptor) |
| return p != nullptr ? *p : *reinterpret_cast<const ::perfetto::protos::TrackEventDescriptor*>( |
| &::perfetto::protos::_TrackEventDescriptor_default_instance_); |
| } |
| inline ::perfetto::protos::TrackEventDescriptor* DataSourceDescriptor::release_track_event_descriptor() { |
| // @@protoc_insertion_point(field_release:perfetto.protos.DataSourceDescriptor.track_event_descriptor) |
| _has_bits_[0] &= ~0x00000004u; |
| ::perfetto::protos::TrackEventDescriptor* temp = track_event_descriptor_; |
| track_event_descriptor_ = nullptr; |
| return temp; |
| } |
| inline ::perfetto::protos::TrackEventDescriptor* DataSourceDescriptor::mutable_track_event_descriptor() { |
| _has_bits_[0] |= 0x00000004u; |
| if (track_event_descriptor_ == nullptr) { |
| auto* p = CreateMaybeMessage<::perfetto::protos::TrackEventDescriptor>(GetArenaNoVirtual()); |
| track_event_descriptor_ = p; |
| } |
| // @@protoc_insertion_point(field_mutable:perfetto.protos.DataSourceDescriptor.track_event_descriptor) |
| return track_event_descriptor_; |
| } |
| inline void DataSourceDescriptor::set_allocated_track_event_descriptor(::perfetto::protos::TrackEventDescriptor* track_event_descriptor) { |
| ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); |
| if (message_arena == nullptr) { |
| delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(track_event_descriptor_); |
| } |
| if (track_event_descriptor) { |
| ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; |
| if (message_arena != submessage_arena) { |
| track_event_descriptor = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
| message_arena, track_event_descriptor, submessage_arena); |
| } |
| _has_bits_[0] |= 0x00000004u; |
| } else { |
| _has_bits_[0] &= ~0x00000004u; |
| } |
| track_event_descriptor_ = track_event_descriptor; |
| // @@protoc_insertion_point(field_set_allocated:perfetto.protos.DataSourceDescriptor.track_event_descriptor) |
| } |
| |
| #ifdef __GNUC__ |
| #pragma GCC diagnostic pop |
| #endif // __GNUC__ |
| |
| // @@protoc_insertion_point(namespace_scope) |
| |
| } // namespace protos |
| } // namespace perfetto |
| |
| // @@protoc_insertion_point(global_scope) |
| |
| #include <google/protobuf/port_undef.inc> |
| #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_protos_2fperfetto_2fcommon_2fdata_5fsource_5fdescriptor_2eproto |