blob: 0d86729c1bb48b594d8fadc410c88a2397386e8e [file] [log] [blame]
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: perfetto/metrics/android/ion_metric.proto
#ifndef PROTOBUF_INCLUDED_perfetto_2fmetrics_2fandroid_2fion_5fmetric_2eproto
#define PROTOBUF_INCLUDED_perfetto_2fmetrics_2fandroid_2fion_5fmetric_2eproto
#include <string>
#include <google/protobuf/stubs/common.h>
#if GOOGLE_PROTOBUF_VERSION < 3005000
#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 3005001 < GOOGLE_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/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
// @@protoc_insertion_point(includes)
#define PROTOBUF_INTERNAL_EXPORT_protobuf_perfetto_2fmetrics_2fandroid_2fion_5fmetric_2eproto
namespace protobuf_perfetto_2fmetrics_2fandroid_2fion_5fmetric_2eproto {
// Internal implementation detail -- do not use these members.
struct TableStruct {
static const ::google::protobuf::internal::ParseTableField entries[];
static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
static const ::google::protobuf::internal::ParseTable schema[2];
static const ::google::protobuf::internal::FieldMetadata field_metadata[];
static const ::google::protobuf::internal::SerializationTable serialization_table[];
static const ::google::protobuf::uint32 offsets[];
};
} // namespace protobuf_perfetto_2fmetrics_2fandroid_2fion_5fmetric_2eproto
namespace perfetto {
namespace protos {
class AndroidIonMetric;
class AndroidIonMetricDefaultTypeInternal;
extern AndroidIonMetricDefaultTypeInternal _AndroidIonMetric_default_instance_;
class AndroidIonMetric_Buffer;
class AndroidIonMetric_BufferDefaultTypeInternal;
extern AndroidIonMetric_BufferDefaultTypeInternal _AndroidIonMetric_Buffer_default_instance_;
} // namespace protos
} // namespace perfetto
namespace google {
namespace protobuf {
template<> ::perfetto::protos::AndroidIonMetric* Arena::CreateMaybeMessage<::perfetto::protos::AndroidIonMetric>(Arena*);
template<> ::perfetto::protos::AndroidIonMetric_Buffer* Arena::CreateMaybeMessage<::perfetto::protos::AndroidIonMetric_Buffer>(Arena*);
} // namespace protobuf
} // namespace google
namespace perfetto {
namespace protos {
// ===================================================================
class AndroidIonMetric_Buffer : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:perfetto.protos.AndroidIonMetric.Buffer) */ {
public:
AndroidIonMetric_Buffer();
virtual ~AndroidIonMetric_Buffer();
AndroidIonMetric_Buffer(const AndroidIonMetric_Buffer& from);
inline AndroidIonMetric_Buffer& operator=(const AndroidIonMetric_Buffer& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
AndroidIonMetric_Buffer(AndroidIonMetric_Buffer&& from) noexcept
: AndroidIonMetric_Buffer() {
*this = ::std::move(from);
}
inline AndroidIonMetric_Buffer& operator=(AndroidIonMetric_Buffer&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
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 AndroidIonMetric_Buffer& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const AndroidIonMetric_Buffer* internal_default_instance() {
return reinterpret_cast<const AndroidIonMetric_Buffer*>(
&_AndroidIonMetric_Buffer_default_instance_);
}
static constexpr int kIndexInFileMessages =
0;
GOOGLE_ATTRIBUTE_NOINLINE void Swap(AndroidIonMetric_Buffer* other);
friend void swap(AndroidIonMetric_Buffer& a, AndroidIonMetric_Buffer& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline AndroidIonMetric_Buffer* New() const final {
return CreateMaybeMessage<AndroidIonMetric_Buffer>(NULL);
}
AndroidIonMetric_Buffer* New(::google::protobuf::Arena* arena) const final {
return CreateMaybeMessage<AndroidIonMetric_Buffer>(arena);
}
void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
final;
void CopyFrom(const AndroidIonMetric_Buffer& from);
void MergeFrom(const AndroidIonMetric_Buffer& from);
void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const final;
void DiscardUnknownFields();
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
void InternalSwap(AndroidIonMetric_Buffer* other);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return NULL;
}
inline void* MaybeArenaPtr() const {
return NULL;
}
public:
::std::string GetTypeName() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// optional string name = 1;
bool has_name() const;
void clear_name();
static const int kNameFieldNumber = 1;
const ::std::string& name() const;
void set_name(const ::std::string& value);
#if LANG_CXX11
void set_name(::std::string&& value);
#endif
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 double avg_size_bytes = 2;
bool has_avg_size_bytes() const;
void clear_avg_size_bytes();
static const int kAvgSizeBytesFieldNumber = 2;
double avg_size_bytes() const;
void set_avg_size_bytes(double value);
// optional double min_size_bytes = 3;
bool has_min_size_bytes() const;
void clear_min_size_bytes();
static const int kMinSizeBytesFieldNumber = 3;
double min_size_bytes() const;
void set_min_size_bytes(double value);
// optional double max_size_bytes = 4;
bool has_max_size_bytes() const;
void clear_max_size_bytes();
static const int kMaxSizeBytesFieldNumber = 4;
double max_size_bytes() const;
void set_max_size_bytes(double value);
// @@protoc_insertion_point(class_scope:perfetto.protos.AndroidIonMetric.Buffer)
private:
void set_has_name();
void clear_has_name();
void set_has_avg_size_bytes();
void clear_has_avg_size_bytes();
void set_has_min_size_bytes();
void clear_has_min_size_bytes();
void set_has_max_size_bytes();
void clear_has_max_size_bytes();
::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
::google::protobuf::internal::HasBits<1> _has_bits_;
mutable ::google::protobuf::internal::CachedSize _cached_size_;
::google::protobuf::internal::ArenaStringPtr name_;
double avg_size_bytes_;
double min_size_bytes_;
double max_size_bytes_;
friend struct ::protobuf_perfetto_2fmetrics_2fandroid_2fion_5fmetric_2eproto::TableStruct;
};
// -------------------------------------------------------------------
class AndroidIonMetric : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:perfetto.protos.AndroidIonMetric) */ {
public:
AndroidIonMetric();
virtual ~AndroidIonMetric();
AndroidIonMetric(const AndroidIonMetric& from);
inline AndroidIonMetric& operator=(const AndroidIonMetric& from) {
CopyFrom(from);
return *this;
}
#if LANG_CXX11
AndroidIonMetric(AndroidIonMetric&& from) noexcept
: AndroidIonMetric() {
*this = ::std::move(from);
}
inline AndroidIonMetric& operator=(AndroidIonMetric&& from) noexcept {
if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
if (this != &from) InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
#endif
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 AndroidIonMetric& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const AndroidIonMetric* internal_default_instance() {
return reinterpret_cast<const AndroidIonMetric*>(
&_AndroidIonMetric_default_instance_);
}
static constexpr int kIndexInFileMessages =
1;
GOOGLE_ATTRIBUTE_NOINLINE void Swap(AndroidIonMetric* other);
friend void swap(AndroidIonMetric& a, AndroidIonMetric& b) {
a.Swap(&b);
}
// implements Message ----------------------------------------------
inline AndroidIonMetric* New() const final {
return CreateMaybeMessage<AndroidIonMetric>(NULL);
}
AndroidIonMetric* New(::google::protobuf::Arena* arena) const final {
return CreateMaybeMessage<AndroidIonMetric>(arena);
}
void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from)
final;
void CopyFrom(const AndroidIonMetric& from);
void MergeFrom(const AndroidIonMetric& from);
void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) final;
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const final;
void DiscardUnknownFields();
int GetCachedSize() const final { return _cached_size_.Get(); }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
void InternalSwap(AndroidIonMetric* other);
private:
inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
return NULL;
}
inline void* MaybeArenaPtr() const {
return NULL;
}
public:
::std::string GetTypeName() const final;
// nested types ----------------------------------------------------
typedef AndroidIonMetric_Buffer Buffer;
// accessors -------------------------------------------------------
// repeated .perfetto.protos.AndroidIonMetric.Buffer buffer = 1;
int buffer_size() const;
void clear_buffer();
static const int kBufferFieldNumber = 1;
::perfetto::protos::AndroidIonMetric_Buffer* mutable_buffer(int index);
::google::protobuf::RepeatedPtrField< ::perfetto::protos::AndroidIonMetric_Buffer >*
mutable_buffer();
const ::perfetto::protos::AndroidIonMetric_Buffer& buffer(int index) const;
::perfetto::protos::AndroidIonMetric_Buffer* add_buffer();
const ::google::protobuf::RepeatedPtrField< ::perfetto::protos::AndroidIonMetric_Buffer >&
buffer() const;
// @@protoc_insertion_point(class_scope:perfetto.protos.AndroidIonMetric)
private:
::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_;
::google::protobuf::internal::HasBits<1> _has_bits_;
mutable ::google::protobuf::internal::CachedSize _cached_size_;
::google::protobuf::RepeatedPtrField< ::perfetto::protos::AndroidIonMetric_Buffer > buffer_;
friend struct ::protobuf_perfetto_2fmetrics_2fandroid_2fion_5fmetric_2eproto::TableStruct;
};
// ===================================================================
// ===================================================================
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif // __GNUC__
// AndroidIonMetric_Buffer
// optional string name = 1;
inline bool AndroidIonMetric_Buffer::has_name() const {
return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void AndroidIonMetric_Buffer::set_has_name() {
_has_bits_[0] |= 0x00000001u;
}
inline void AndroidIonMetric_Buffer::clear_has_name() {
_has_bits_[0] &= ~0x00000001u;
}
inline void AndroidIonMetric_Buffer::clear_name() {
name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
clear_has_name();
}
inline const ::std::string& AndroidIonMetric_Buffer::name() const {
// @@protoc_insertion_point(field_get:perfetto.protos.AndroidIonMetric.Buffer.name)
return name_.GetNoArena();
}
inline void AndroidIonMetric_Buffer::set_name(const ::std::string& value) {
set_has_name();
name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
// @@protoc_insertion_point(field_set:perfetto.protos.AndroidIonMetric.Buffer.name)
}
#if LANG_CXX11
inline void AndroidIonMetric_Buffer::set_name(::std::string&& value) {
set_has_name();
name_.SetNoArena(
&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
// @@protoc_insertion_point(field_set_rvalue:perfetto.protos.AndroidIonMetric.Buffer.name)
}
#endif
inline void AndroidIonMetric_Buffer::set_name(const char* value) {
GOOGLE_DCHECK(value != NULL);
set_has_name();
name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
// @@protoc_insertion_point(field_set_char:perfetto.protos.AndroidIonMetric.Buffer.name)
}
inline void AndroidIonMetric_Buffer::set_name(const char* value, size_t size) {
set_has_name();
name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
::std::string(reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:perfetto.protos.AndroidIonMetric.Buffer.name)
}
inline ::std::string* AndroidIonMetric_Buffer::mutable_name() {
set_has_name();
// @@protoc_insertion_point(field_mutable:perfetto.protos.AndroidIonMetric.Buffer.name)
return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline ::std::string* AndroidIonMetric_Buffer::release_name() {
// @@protoc_insertion_point(field_release:perfetto.protos.AndroidIonMetric.Buffer.name)
if (!has_name()) {
return NULL;
}
clear_has_name();
return name_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}
inline void AndroidIonMetric_Buffer::set_allocated_name(::std::string* name) {
if (name != NULL) {
set_has_name();
} else {
clear_has_name();
}
name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
// @@protoc_insertion_point(field_set_allocated:perfetto.protos.AndroidIonMetric.Buffer.name)
}
// optional double avg_size_bytes = 2;
inline bool AndroidIonMetric_Buffer::has_avg_size_bytes() const {
return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void AndroidIonMetric_Buffer::set_has_avg_size_bytes() {
_has_bits_[0] |= 0x00000002u;
}
inline void AndroidIonMetric_Buffer::clear_has_avg_size_bytes() {
_has_bits_[0] &= ~0x00000002u;
}
inline void AndroidIonMetric_Buffer::clear_avg_size_bytes() {
avg_size_bytes_ = 0;
clear_has_avg_size_bytes();
}
inline double AndroidIonMetric_Buffer::avg_size_bytes() const {
// @@protoc_insertion_point(field_get:perfetto.protos.AndroidIonMetric.Buffer.avg_size_bytes)
return avg_size_bytes_;
}
inline void AndroidIonMetric_Buffer::set_avg_size_bytes(double value) {
set_has_avg_size_bytes();
avg_size_bytes_ = value;
// @@protoc_insertion_point(field_set:perfetto.protos.AndroidIonMetric.Buffer.avg_size_bytes)
}
// optional double min_size_bytes = 3;
inline bool AndroidIonMetric_Buffer::has_min_size_bytes() const {
return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void AndroidIonMetric_Buffer::set_has_min_size_bytes() {
_has_bits_[0] |= 0x00000004u;
}
inline void AndroidIonMetric_Buffer::clear_has_min_size_bytes() {
_has_bits_[0] &= ~0x00000004u;
}
inline void AndroidIonMetric_Buffer::clear_min_size_bytes() {
min_size_bytes_ = 0;
clear_has_min_size_bytes();
}
inline double AndroidIonMetric_Buffer::min_size_bytes() const {
// @@protoc_insertion_point(field_get:perfetto.protos.AndroidIonMetric.Buffer.min_size_bytes)
return min_size_bytes_;
}
inline void AndroidIonMetric_Buffer::set_min_size_bytes(double value) {
set_has_min_size_bytes();
min_size_bytes_ = value;
// @@protoc_insertion_point(field_set:perfetto.protos.AndroidIonMetric.Buffer.min_size_bytes)
}
// optional double max_size_bytes = 4;
inline bool AndroidIonMetric_Buffer::has_max_size_bytes() const {
return (_has_bits_[0] & 0x00000008u) != 0;
}
inline void AndroidIonMetric_Buffer::set_has_max_size_bytes() {
_has_bits_[0] |= 0x00000008u;
}
inline void AndroidIonMetric_Buffer::clear_has_max_size_bytes() {
_has_bits_[0] &= ~0x00000008u;
}
inline void AndroidIonMetric_Buffer::clear_max_size_bytes() {
max_size_bytes_ = 0;
clear_has_max_size_bytes();
}
inline double AndroidIonMetric_Buffer::max_size_bytes() const {
// @@protoc_insertion_point(field_get:perfetto.protos.AndroidIonMetric.Buffer.max_size_bytes)
return max_size_bytes_;
}
inline void AndroidIonMetric_Buffer::set_max_size_bytes(double value) {
set_has_max_size_bytes();
max_size_bytes_ = value;
// @@protoc_insertion_point(field_set:perfetto.protos.AndroidIonMetric.Buffer.max_size_bytes)
}
// -------------------------------------------------------------------
// AndroidIonMetric
// repeated .perfetto.protos.AndroidIonMetric.Buffer buffer = 1;
inline int AndroidIonMetric::buffer_size() const {
return buffer_.size();
}
inline void AndroidIonMetric::clear_buffer() {
buffer_.Clear();
}
inline ::perfetto::protos::AndroidIonMetric_Buffer* AndroidIonMetric::mutable_buffer(int index) {
// @@protoc_insertion_point(field_mutable:perfetto.protos.AndroidIonMetric.buffer)
return buffer_.Mutable(index);
}
inline ::google::protobuf::RepeatedPtrField< ::perfetto::protos::AndroidIonMetric_Buffer >*
AndroidIonMetric::mutable_buffer() {
// @@protoc_insertion_point(field_mutable_list:perfetto.protos.AndroidIonMetric.buffer)
return &buffer_;
}
inline const ::perfetto::protos::AndroidIonMetric_Buffer& AndroidIonMetric::buffer(int index) const {
// @@protoc_insertion_point(field_get:perfetto.protos.AndroidIonMetric.buffer)
return buffer_.Get(index);
}
inline ::perfetto::protos::AndroidIonMetric_Buffer* AndroidIonMetric::add_buffer() {
// @@protoc_insertion_point(field_add:perfetto.protos.AndroidIonMetric.buffer)
return buffer_.Add();
}
inline const ::google::protobuf::RepeatedPtrField< ::perfetto::protos::AndroidIonMetric_Buffer >&
AndroidIonMetric::buffer() const {
// @@protoc_insertion_point(field_list:perfetto.protos.AndroidIonMetric.buffer)
return buffer_;
}
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif // __GNUC__
// -------------------------------------------------------------------
// @@protoc_insertion_point(namespace_scope)
} // namespace protos
} // namespace perfetto
// @@protoc_insertion_point(global_scope)
#endif // PROTOBUF_INCLUDED_perfetto_2fmetrics_2fandroid_2fion_5fmetric_2eproto