1 // Generated by the protocol buffer compiler. DO NOT EDIT! 2 // source: protos/perfetto/config/chrome/system_metrics.proto 3 4 #ifndef GOOGLE_PROTOBUF_INCLUDED_protos_2fperfetto_2fconfig_2fchrome_2fsystem_5fmetrics_2eproto 5 #define GOOGLE_PROTOBUF_INCLUDED_protos_2fperfetto_2fconfig_2fchrome_2fsystem_5fmetrics_2eproto 6 7 #include <cstdint> 8 #include <limits> 9 #include <string> 10 11 #include <google/protobuf/port_def.inc> 12 #if PROTOBUF_VERSION < 3021000 13 #error This file was generated by a newer version of protoc which is 14 #error incompatible with your Protocol Buffer headers. Please update 15 #error your headers. 16 #endif 17 #if 3021012 < PROTOBUF_MIN_PROTOC_VERSION 18 #error This file was generated by an older version of protoc which is 19 #error incompatible with your Protocol Buffer headers. Please 20 #error regenerate this file with a newer version of protoc. 21 #endif 22 23 #include <google/protobuf/port_undef.inc> 24 #include <google/protobuf/io/coded_stream.h> 25 #include <google/protobuf/arena.h> 26 #include <google/protobuf/arenastring.h> 27 #include <google/protobuf/generated_message_util.h> 28 #include <google/protobuf/metadata_lite.h> 29 #include <google/protobuf/message_lite.h> 30 #include <google/protobuf/repeated_field.h> // IWYU pragma: export 31 #include <google/protobuf/extension_set.h> // IWYU pragma: export 32 // @@protoc_insertion_point(includes) 33 #include <google/protobuf/port_def.inc> 34 #define PROTOBUF_INTERNAL_EXPORT_protos_2fperfetto_2fconfig_2fchrome_2fsystem_5fmetrics_2eproto 35 PROTOBUF_NAMESPACE_OPEN 36 namespace internal { 37 class AnyMetadata; 38 } // namespace internal 39 PROTOBUF_NAMESPACE_CLOSE 40 41 // Internal implementation detail -- do not use these members. 42 struct TableStruct_protos_2fperfetto_2fconfig_2fchrome_2fsystem_5fmetrics_2eproto { 43 static const ::uint32_t offsets[]; 44 }; 45 namespace perfetto { 46 namespace protos { 47 class ChromiumSystemMetricsConfig; 48 struct ChromiumSystemMetricsConfigDefaultTypeInternal; 49 extern ChromiumSystemMetricsConfigDefaultTypeInternal _ChromiumSystemMetricsConfig_default_instance_; 50 } // namespace protos 51 } // namespace perfetto 52 PROTOBUF_NAMESPACE_OPEN 53 template<> ::perfetto::protos::ChromiumSystemMetricsConfig* Arena::CreateMaybeMessage<::perfetto::protos::ChromiumSystemMetricsConfig>(Arena*); 54 PROTOBUF_NAMESPACE_CLOSE 55 namespace perfetto { 56 namespace protos { 57 58 // =================================================================== 59 60 class ChromiumSystemMetricsConfig final : 61 public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:perfetto.protos.ChromiumSystemMetricsConfig) */ { 62 public: ChromiumSystemMetricsConfig()63 inline ChromiumSystemMetricsConfig() : ChromiumSystemMetricsConfig(nullptr) {} 64 ~ChromiumSystemMetricsConfig() override; 65 explicit PROTOBUF_CONSTEXPR ChromiumSystemMetricsConfig(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); 66 67 ChromiumSystemMetricsConfig(const ChromiumSystemMetricsConfig& from); ChromiumSystemMetricsConfig(ChromiumSystemMetricsConfig && from)68 ChromiumSystemMetricsConfig(ChromiumSystemMetricsConfig&& from) noexcept 69 : ChromiumSystemMetricsConfig() { 70 *this = ::std::move(from); 71 } 72 73 inline ChromiumSystemMetricsConfig& operator=(const ChromiumSystemMetricsConfig& from) { 74 if (this == &from) return *this; 75 CopyFrom(from); 76 return *this; 77 } 78 inline ChromiumSystemMetricsConfig& operator=(ChromiumSystemMetricsConfig&& from) noexcept { 79 if (this == &from) return *this; 80 if (GetOwningArena() == from.GetOwningArena() 81 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE 82 && GetOwningArena() != nullptr 83 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE 84 ) { 85 InternalSwap(&from); 86 } else { 87 CopyFrom(from); 88 } 89 return *this; 90 } 91 unknown_fields()92 inline const std::string& unknown_fields() const { 93 return _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString); 94 } mutable_unknown_fields()95 inline std::string* mutable_unknown_fields() { 96 return _internal_metadata_.mutable_unknown_fields<std::string>(); 97 } 98 default_instance()99 static const ChromiumSystemMetricsConfig& default_instance() { 100 return *internal_default_instance(); 101 } internal_default_instance()102 static inline const ChromiumSystemMetricsConfig* internal_default_instance() { 103 return reinterpret_cast<const ChromiumSystemMetricsConfig*>( 104 &_ChromiumSystemMetricsConfig_default_instance_); 105 } 106 static constexpr int kIndexInFileMessages = 107 0; 108 swap(ChromiumSystemMetricsConfig & a,ChromiumSystemMetricsConfig & b)109 friend void swap(ChromiumSystemMetricsConfig& a, ChromiumSystemMetricsConfig& b) { 110 a.Swap(&b); 111 } Swap(ChromiumSystemMetricsConfig * other)112 inline void Swap(ChromiumSystemMetricsConfig* other) { 113 if (other == this) return; 114 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP 115 if (GetOwningArena() != nullptr && 116 GetOwningArena() == other->GetOwningArena()) { 117 #else // PROTOBUF_FORCE_COPY_IN_SWAP 118 if (GetOwningArena() == other->GetOwningArena()) { 119 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP 120 InternalSwap(other); 121 } else { 122 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); 123 } 124 } 125 void UnsafeArenaSwap(ChromiumSystemMetricsConfig* other) { 126 if (other == this) return; 127 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); 128 InternalSwap(other); 129 } 130 131 // implements Message ---------------------------------------------- 132 133 ChromiumSystemMetricsConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { 134 return CreateMaybeMessage<ChromiumSystemMetricsConfig>(arena); 135 } 136 ChromiumSystemMetricsConfig* New() const { 137 return New(nullptr); 138 } 139 void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final; 140 void CopyFrom(const ChromiumSystemMetricsConfig& from); 141 void MergeFrom(const ChromiumSystemMetricsConfig& from); 142 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; 143 bool IsInitialized() const final; 144 145 size_t ByteSizeLong() const final; 146 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; 147 ::uint8_t* _InternalSerialize( 148 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; 149 int GetCachedSize() const final { return _impl_._cached_size_.Get(); } 150 151 private: 152 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); 153 void SharedDtor(); 154 void SetCachedSize(int size) const; 155 void InternalSwap(ChromiumSystemMetricsConfig* other); 156 157 private: 158 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; 159 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { 160 return "perfetto.protos.ChromiumSystemMetricsConfig"; 161 } 162 protected: 163 explicit ChromiumSystemMetricsConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena, 164 bool is_message_owned = false); 165 public: 166 167 std::string GetTypeName() const final; 168 169 // nested types ---------------------------------------------------- 170 171 // accessors ------------------------------------------------------- 172 173 enum : int { 174 kSamplingIntervalMsFieldNumber = 1, 175 }; 176 // optional uint32 sampling_interval_ms = 1; 177 bool has_sampling_interval_ms() const; 178 private: 179 bool _internal_has_sampling_interval_ms() const; 180 public: 181 void clear_sampling_interval_ms(); 182 ::uint32_t sampling_interval_ms() const; 183 void set_sampling_interval_ms(::uint32_t value); 184 private: 185 ::uint32_t _internal_sampling_interval_ms() const; 186 void _internal_set_sampling_interval_ms(::uint32_t value); 187 public: 188 189 // @@protoc_insertion_point(class_scope:perfetto.protos.ChromiumSystemMetricsConfig) 190 private: 191 class _Internal; 192 193 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; 194 typedef void InternalArenaConstructable_; 195 typedef void DestructorSkippable_; 196 struct Impl_ { 197 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; 198 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; 199 ::uint32_t sampling_interval_ms_; 200 }; 201 union { Impl_ _impl_; }; 202 friend struct ::TableStruct_protos_2fperfetto_2fconfig_2fchrome_2fsystem_5fmetrics_2eproto; 203 }; 204 // =================================================================== 205 206 207 // =================================================================== 208 209 #ifdef __GNUC__ 210 #pragma GCC diagnostic push 211 #pragma GCC diagnostic ignored "-Wstrict-aliasing" 212 #endif // __GNUC__ 213 // ChromiumSystemMetricsConfig 214 215 // optional uint32 sampling_interval_ms = 1; _internal_has_sampling_interval_ms()216inline bool ChromiumSystemMetricsConfig::_internal_has_sampling_interval_ms() const { 217 bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; 218 return value; 219 } has_sampling_interval_ms()220inline bool ChromiumSystemMetricsConfig::has_sampling_interval_ms() const { 221 return _internal_has_sampling_interval_ms(); 222 } clear_sampling_interval_ms()223inline void ChromiumSystemMetricsConfig::clear_sampling_interval_ms() { 224 _impl_.sampling_interval_ms_ = 0u; 225 _impl_._has_bits_[0] &= ~0x00000001u; 226 } _internal_sampling_interval_ms()227inline ::uint32_t ChromiumSystemMetricsConfig::_internal_sampling_interval_ms() const { 228 return _impl_.sampling_interval_ms_; 229 } sampling_interval_ms()230inline ::uint32_t ChromiumSystemMetricsConfig::sampling_interval_ms() const { 231 // @@protoc_insertion_point(field_get:perfetto.protos.ChromiumSystemMetricsConfig.sampling_interval_ms) 232 return _internal_sampling_interval_ms(); 233 } _internal_set_sampling_interval_ms(::uint32_t value)234inline void ChromiumSystemMetricsConfig::_internal_set_sampling_interval_ms(::uint32_t value) { 235 _impl_._has_bits_[0] |= 0x00000001u; 236 _impl_.sampling_interval_ms_ = value; 237 } set_sampling_interval_ms(::uint32_t value)238inline void ChromiumSystemMetricsConfig::set_sampling_interval_ms(::uint32_t value) { 239 _internal_set_sampling_interval_ms(value); 240 // @@protoc_insertion_point(field_set:perfetto.protos.ChromiumSystemMetricsConfig.sampling_interval_ms) 241 } 242 243 #ifdef __GNUC__ 244 #pragma GCC diagnostic pop 245 #endif // __GNUC__ 246 247 // @@protoc_insertion_point(namespace_scope) 248 249 } // namespace protos 250 } // namespace perfetto 251 252 // @@protoc_insertion_point(global_scope) 253 254 #include <google/protobuf/port_undef.inc> 255 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_protos_2fperfetto_2fconfig_2fchrome_2fsystem_5fmetrics_2eproto 256