blob: bdc2019f21255ad568fc6abf9d7f7e4d79626d2d [file] [log] [blame]
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: structured_data.proto
#ifndef GOOGLE_PROTOBUF_INCLUDED_structured_5fdata_2eproto
#define GOOGLE_PROTOBUF_INCLUDED_structured_5fdata_2eproto
#include <limits>
#include <string>
#include <google/protobuf/port_def.inc>
#if PROTOBUF_VERSION < 3011000
#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 3011004 < 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 <google/protobuf/generated_enum_util.h>
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>
#define PROTOBUF_INTERNAL_EXPORT_structured_5fdata_2eproto
PROTOBUF_NAMESPACE_OPEN
namespace internal {
class AnyMetadata;
} // namespace internal
PROTOBUF_NAMESPACE_CLOSE
// Internal implementation detail -- do not use these members.
struct TableStruct_structured_5fdata_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[3]
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 metrics {
class StructuredDataProto;
class StructuredDataProtoDefaultTypeInternal;
extern StructuredDataProtoDefaultTypeInternal _StructuredDataProto_default_instance_;
class StructuredEventProto;
class StructuredEventProtoDefaultTypeInternal;
extern StructuredEventProtoDefaultTypeInternal _StructuredEventProto_default_instance_;
class StructuredEventProto_Metric;
class StructuredEventProto_MetricDefaultTypeInternal;
extern StructuredEventProto_MetricDefaultTypeInternal _StructuredEventProto_Metric_default_instance_;
} // namespace metrics
PROTOBUF_NAMESPACE_OPEN
template<> ::metrics::StructuredDataProto* Arena::CreateMaybeMessage<::metrics::StructuredDataProto>(Arena*);
template<> ::metrics::StructuredEventProto* Arena::CreateMaybeMessage<::metrics::StructuredEventProto>(Arena*);
template<> ::metrics::StructuredEventProto_Metric* Arena::CreateMaybeMessage<::metrics::StructuredEventProto_Metric>(Arena*);
PROTOBUF_NAMESPACE_CLOSE
namespace metrics {
enum StructuredEventProto_EventType : int {
StructuredEventProto_EventType_UNKNOWN = 0,
StructuredEventProto_EventType_REGULAR = 1,
StructuredEventProto_EventType_RAW_STRING = 2
};
bool StructuredEventProto_EventType_IsValid(int value);
constexpr StructuredEventProto_EventType StructuredEventProto_EventType_EventType_MIN = StructuredEventProto_EventType_UNKNOWN;
constexpr StructuredEventProto_EventType StructuredEventProto_EventType_EventType_MAX = StructuredEventProto_EventType_RAW_STRING;
constexpr int StructuredEventProto_EventType_EventType_ARRAYSIZE = StructuredEventProto_EventType_EventType_MAX + 1;
const std::string& StructuredEventProto_EventType_Name(StructuredEventProto_EventType value);
template<typename T>
inline const std::string& StructuredEventProto_EventType_Name(T enum_t_value) {
static_assert(::std::is_same<T, StructuredEventProto_EventType>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to function StructuredEventProto_EventType_Name.");
return StructuredEventProto_EventType_Name(static_cast<StructuredEventProto_EventType>(enum_t_value));
}
bool StructuredEventProto_EventType_Parse(
const std::string& name, StructuredEventProto_EventType* value);
// ===================================================================
class StructuredEventProto_Metric :
public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:metrics.StructuredEventProto.Metric) */ {
public:
StructuredEventProto_Metric();
virtual ~StructuredEventProto_Metric();
StructuredEventProto_Metric(const StructuredEventProto_Metric& from);
StructuredEventProto_Metric(StructuredEventProto_Metric&& from) noexcept
: StructuredEventProto_Metric() {
*this = ::std::move(from);
}
inline StructuredEventProto_Metric& operator=(const StructuredEventProto_Metric& from) {
CopyFrom(from);
return *this;
}
inline StructuredEventProto_Metric& operator=(StructuredEventProto_Metric&& 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 StructuredEventProto_Metric& default_instance();
enum ValueCase {
kValueHmac = 2,
kValueInt64 = 3,
kValueString = 4,
VALUE_NOT_SET = 0,
};
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const StructuredEventProto_Metric* internal_default_instance() {
return reinterpret_cast<const StructuredEventProto_Metric*>(
&_StructuredEventProto_Metric_default_instance_);
}
static constexpr int kIndexInFileMessages =
0;
friend void swap(StructuredEventProto_Metric& a, StructuredEventProto_Metric& b) {
a.Swap(&b);
}
inline void Swap(StructuredEventProto_Metric* other) {
if (other == this) return;
InternalSwap(other);
}
// implements Message ----------------------------------------------
inline StructuredEventProto_Metric* New() const final {
return CreateMaybeMessage<StructuredEventProto_Metric>(nullptr);
}
StructuredEventProto_Metric* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
return CreateMaybeMessage<StructuredEventProto_Metric>(arena);
}
void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)
final;
void CopyFrom(const StructuredEventProto_Metric& from);
void MergeFrom(const StructuredEventProto_Metric& from);
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) 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(StructuredEventProto_Metric* other);
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "metrics.StructuredEventProto.Metric";
}
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 {
kNameHashFieldNumber = 1,
kValueHmacFieldNumber = 2,
kValueInt64FieldNumber = 3,
kValueStringFieldNumber = 4,
};
// optional fixed64 name_hash = 1;
bool has_name_hash() const;
private:
bool _internal_has_name_hash() const;
public:
void clear_name_hash();
::PROTOBUF_NAMESPACE_ID::uint64 name_hash() const;
void set_name_hash(::PROTOBUF_NAMESPACE_ID::uint64 value);
private:
::PROTOBUF_NAMESPACE_ID::uint64 _internal_name_hash() const;
void _internal_set_name_hash(::PROTOBUF_NAMESPACE_ID::uint64 value);
public:
// optional fixed64 value_hmac = 2;
bool has_value_hmac() const;
private:
bool _internal_has_value_hmac() const;
public:
void clear_value_hmac();
::PROTOBUF_NAMESPACE_ID::uint64 value_hmac() const;
void set_value_hmac(::PROTOBUF_NAMESPACE_ID::uint64 value);
private:
::PROTOBUF_NAMESPACE_ID::uint64 _internal_value_hmac() const;
void _internal_set_value_hmac(::PROTOBUF_NAMESPACE_ID::uint64 value);
public:
// optional int64 value_int64 = 3;
bool has_value_int64() const;
private:
bool _internal_has_value_int64() const;
public:
void clear_value_int64();
::PROTOBUF_NAMESPACE_ID::int64 value_int64() const;
void set_value_int64(::PROTOBUF_NAMESPACE_ID::int64 value);
private:
::PROTOBUF_NAMESPACE_ID::int64 _internal_value_int64() const;
void _internal_set_value_int64(::PROTOBUF_NAMESPACE_ID::int64 value);
public:
// optional string value_string = 4;
bool has_value_string() const;
private:
bool _internal_has_value_string() const;
public:
void clear_value_string();
const std::string& value_string() const;
void set_value_string(const std::string& value);
void set_value_string(std::string&& value);
void set_value_string(const char* value);
void set_value_string(const char* value, size_t size);
std::string* mutable_value_string();
std::string* release_value_string();
void set_allocated_value_string(std::string* value_string);
private:
const std::string& _internal_value_string() const;
void _internal_set_value_string(const std::string& value);
std::string* _internal_mutable_value_string();
public:
void clear_value();
ValueCase value_case() const;
// @@protoc_insertion_point(class_scope:metrics.StructuredEventProto.Metric)
private:
class _Internal;
void set_has_value_hmac();
void set_has_value_int64();
void set_has_value_string();
inline bool has_value() const;
inline void clear_has_value();
::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::uint64 name_hash_;
union ValueUnion {
ValueUnion() {}
::PROTOBUF_NAMESPACE_ID::uint64 value_hmac_;
::PROTOBUF_NAMESPACE_ID::int64 value_int64_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr value_string_;
} value_;
::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];
friend struct ::TableStruct_structured_5fdata_2eproto;
};
// -------------------------------------------------------------------
class StructuredEventProto :
public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:metrics.StructuredEventProto) */ {
public:
StructuredEventProto();
virtual ~StructuredEventProto();
StructuredEventProto(const StructuredEventProto& from);
StructuredEventProto(StructuredEventProto&& from) noexcept
: StructuredEventProto() {
*this = ::std::move(from);
}
inline StructuredEventProto& operator=(const StructuredEventProto& from) {
CopyFrom(from);
return *this;
}
inline StructuredEventProto& operator=(StructuredEventProto&& 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 StructuredEventProto& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const StructuredEventProto* internal_default_instance() {
return reinterpret_cast<const StructuredEventProto*>(
&_StructuredEventProto_default_instance_);
}
static constexpr int kIndexInFileMessages =
1;
friend void swap(StructuredEventProto& a, StructuredEventProto& b) {
a.Swap(&b);
}
inline void Swap(StructuredEventProto* other) {
if (other == this) return;
InternalSwap(other);
}
// implements Message ----------------------------------------------
inline StructuredEventProto* New() const final {
return CreateMaybeMessage<StructuredEventProto>(nullptr);
}
StructuredEventProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
return CreateMaybeMessage<StructuredEventProto>(arena);
}
void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)
final;
void CopyFrom(const StructuredEventProto& from);
void MergeFrom(const StructuredEventProto& from);
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) 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(StructuredEventProto* other);
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "metrics.StructuredEventProto";
}
private:
inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
return nullptr;
}
inline void* MaybeArenaPtr() const {
return nullptr;
}
public:
std::string GetTypeName() const final;
// nested types ----------------------------------------------------
typedef StructuredEventProto_Metric Metric;
typedef StructuredEventProto_EventType EventType;
static constexpr EventType UNKNOWN =
StructuredEventProto_EventType_UNKNOWN;
static constexpr EventType REGULAR =
StructuredEventProto_EventType_REGULAR;
static constexpr EventType RAW_STRING =
StructuredEventProto_EventType_RAW_STRING;
static inline bool EventType_IsValid(int value) {
return StructuredEventProto_EventType_IsValid(value);
}
static constexpr EventType EventType_MIN =
StructuredEventProto_EventType_EventType_MIN;
static constexpr EventType EventType_MAX =
StructuredEventProto_EventType_EventType_MAX;
static constexpr int EventType_ARRAYSIZE =
StructuredEventProto_EventType_EventType_ARRAYSIZE;
template<typename T>
static inline const std::string& EventType_Name(T enum_t_value) {
static_assert(::std::is_same<T, EventType>::value ||
::std::is_integral<T>::value,
"Incorrect type passed to function EventType_Name.");
return StructuredEventProto_EventType_Name(enum_t_value);
}
static inline bool EventType_Parse(const std::string& name,
EventType* value) {
return StructuredEventProto_EventType_Parse(name, value);
}
// accessors -------------------------------------------------------
enum : int {
kMetricsFieldNumber = 3,
kProfileEventIdFieldNumber = 1,
kEventNameHashFieldNumber = 2,
kEventTypeFieldNumber = 4,
};
// repeated .metrics.StructuredEventProto.Metric metrics = 3;
int metrics_size() const;
private:
int _internal_metrics_size() const;
public:
void clear_metrics();
::metrics::StructuredEventProto_Metric* mutable_metrics(int index);
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::metrics::StructuredEventProto_Metric >*
mutable_metrics();
private:
const ::metrics::StructuredEventProto_Metric& _internal_metrics(int index) const;
::metrics::StructuredEventProto_Metric* _internal_add_metrics();
public:
const ::metrics::StructuredEventProto_Metric& metrics(int index) const;
::metrics::StructuredEventProto_Metric* add_metrics();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::metrics::StructuredEventProto_Metric >&
metrics() const;
// optional fixed64 profile_event_id = 1;
bool has_profile_event_id() const;
private:
bool _internal_has_profile_event_id() const;
public:
void clear_profile_event_id();
::PROTOBUF_NAMESPACE_ID::uint64 profile_event_id() const;
void set_profile_event_id(::PROTOBUF_NAMESPACE_ID::uint64 value);
private:
::PROTOBUF_NAMESPACE_ID::uint64 _internal_profile_event_id() const;
void _internal_set_profile_event_id(::PROTOBUF_NAMESPACE_ID::uint64 value);
public:
// optional fixed64 event_name_hash = 2;
bool has_event_name_hash() const;
private:
bool _internal_has_event_name_hash() const;
public:
void clear_event_name_hash();
::PROTOBUF_NAMESPACE_ID::uint64 event_name_hash() const;
void set_event_name_hash(::PROTOBUF_NAMESPACE_ID::uint64 value);
private:
::PROTOBUF_NAMESPACE_ID::uint64 _internal_event_name_hash() const;
void _internal_set_event_name_hash(::PROTOBUF_NAMESPACE_ID::uint64 value);
public:
// optional .metrics.StructuredEventProto.EventType event_type = 4;
bool has_event_type() const;
private:
bool _internal_has_event_type() const;
public:
void clear_event_type();
::metrics::StructuredEventProto_EventType event_type() const;
void set_event_type(::metrics::StructuredEventProto_EventType value);
private:
::metrics::StructuredEventProto_EventType _internal_event_type() const;
void _internal_set_event_type(::metrics::StructuredEventProto_EventType value);
public:
// @@protoc_insertion_point(class_scope:metrics.StructuredEventProto)
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::RepeatedPtrField< ::metrics::StructuredEventProto_Metric > metrics_;
::PROTOBUF_NAMESPACE_ID::uint64 profile_event_id_;
::PROTOBUF_NAMESPACE_ID::uint64 event_name_hash_;
int event_type_;
friend struct ::TableStruct_structured_5fdata_2eproto;
};
// -------------------------------------------------------------------
class StructuredDataProto :
public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:metrics.StructuredDataProto) */ {
public:
StructuredDataProto();
virtual ~StructuredDataProto();
StructuredDataProto(const StructuredDataProto& from);
StructuredDataProto(StructuredDataProto&& from) noexcept
: StructuredDataProto() {
*this = ::std::move(from);
}
inline StructuredDataProto& operator=(const StructuredDataProto& from) {
CopyFrom(from);
return *this;
}
inline StructuredDataProto& operator=(StructuredDataProto&& 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 StructuredDataProto& default_instance();
static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
static inline const StructuredDataProto* internal_default_instance() {
return reinterpret_cast<const StructuredDataProto*>(
&_StructuredDataProto_default_instance_);
}
static constexpr int kIndexInFileMessages =
2;
friend void swap(StructuredDataProto& a, StructuredDataProto& b) {
a.Swap(&b);
}
inline void Swap(StructuredDataProto* other) {
if (other == this) return;
InternalSwap(other);
}
// implements Message ----------------------------------------------
inline StructuredDataProto* New() const final {
return CreateMaybeMessage<StructuredDataProto>(nullptr);
}
StructuredDataProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
return CreateMaybeMessage<StructuredDataProto>(arena);
}
void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)
final;
void CopyFrom(const StructuredDataProto& from);
void MergeFrom(const StructuredDataProto& from);
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) 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(StructuredDataProto* other);
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "metrics.StructuredDataProto";
}
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 {
kEventsFieldNumber = 1,
};
// repeated .metrics.StructuredEventProto events = 1;
int events_size() const;
private:
int _internal_events_size() const;
public:
void clear_events();
::metrics::StructuredEventProto* mutable_events(int index);
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::metrics::StructuredEventProto >*
mutable_events();
private:
const ::metrics::StructuredEventProto& _internal_events(int index) const;
::metrics::StructuredEventProto* _internal_add_events();
public:
const ::metrics::StructuredEventProto& events(int index) const;
::metrics::StructuredEventProto* add_events();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::metrics::StructuredEventProto >&
events() const;
// @@protoc_insertion_point(class_scope:metrics.StructuredDataProto)
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::RepeatedPtrField< ::metrics::StructuredEventProto > events_;
friend struct ::TableStruct_structured_5fdata_2eproto;
};
// ===================================================================
// ===================================================================
#ifdef __GNUC__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
#endif // __GNUC__
// StructuredEventProto_Metric
// optional fixed64 name_hash = 1;
inline bool StructuredEventProto_Metric::_internal_has_name_hash() const {
bool value = (_has_bits_[0] & 0x00000001u) != 0;
return value;
}
inline bool StructuredEventProto_Metric::has_name_hash() const {
return _internal_has_name_hash();
}
inline void StructuredEventProto_Metric::clear_name_hash() {
name_hash_ = PROTOBUF_ULONGLONG(0);
_has_bits_[0] &= ~0x00000001u;
}
inline ::PROTOBUF_NAMESPACE_ID::uint64 StructuredEventProto_Metric::_internal_name_hash() const {
return name_hash_;
}
inline ::PROTOBUF_NAMESPACE_ID::uint64 StructuredEventProto_Metric::name_hash() const {
// @@protoc_insertion_point(field_get:metrics.StructuredEventProto.Metric.name_hash)
return _internal_name_hash();
}
inline void StructuredEventProto_Metric::_internal_set_name_hash(::PROTOBUF_NAMESPACE_ID::uint64 value) {
_has_bits_[0] |= 0x00000001u;
name_hash_ = value;
}
inline void StructuredEventProto_Metric::set_name_hash(::PROTOBUF_NAMESPACE_ID::uint64 value) {
_internal_set_name_hash(value);
// @@protoc_insertion_point(field_set:metrics.StructuredEventProto.Metric.name_hash)
}
// optional fixed64 value_hmac = 2;
inline bool StructuredEventProto_Metric::_internal_has_value_hmac() const {
return value_case() == kValueHmac;
}
inline bool StructuredEventProto_Metric::has_value_hmac() const {
return _internal_has_value_hmac();
}
inline void StructuredEventProto_Metric::set_has_value_hmac() {
_oneof_case_[0] = kValueHmac;
}
inline void StructuredEventProto_Metric::clear_value_hmac() {
if (_internal_has_value_hmac()) {
value_.value_hmac_ = PROTOBUF_ULONGLONG(0);
clear_has_value();
}
}
inline ::PROTOBUF_NAMESPACE_ID::uint64 StructuredEventProto_Metric::_internal_value_hmac() const {
if (_internal_has_value_hmac()) {
return value_.value_hmac_;
}
return PROTOBUF_ULONGLONG(0);
}
inline void StructuredEventProto_Metric::_internal_set_value_hmac(::PROTOBUF_NAMESPACE_ID::uint64 value) {
if (!_internal_has_value_hmac()) {
clear_value();
set_has_value_hmac();
}
value_.value_hmac_ = value;
}
inline ::PROTOBUF_NAMESPACE_ID::uint64 StructuredEventProto_Metric::value_hmac() const {
// @@protoc_insertion_point(field_get:metrics.StructuredEventProto.Metric.value_hmac)
return _internal_value_hmac();
}
inline void StructuredEventProto_Metric::set_value_hmac(::PROTOBUF_NAMESPACE_ID::uint64 value) {
_internal_set_value_hmac(value);
// @@protoc_insertion_point(field_set:metrics.StructuredEventProto.Metric.value_hmac)
}
// optional int64 value_int64 = 3;
inline bool StructuredEventProto_Metric::_internal_has_value_int64() const {
return value_case() == kValueInt64;
}
inline bool StructuredEventProto_Metric::has_value_int64() const {
return _internal_has_value_int64();
}
inline void StructuredEventProto_Metric::set_has_value_int64() {
_oneof_case_[0] = kValueInt64;
}
inline void StructuredEventProto_Metric::clear_value_int64() {
if (_internal_has_value_int64()) {
value_.value_int64_ = PROTOBUF_LONGLONG(0);
clear_has_value();
}
}
inline ::PROTOBUF_NAMESPACE_ID::int64 StructuredEventProto_Metric::_internal_value_int64() const {
if (_internal_has_value_int64()) {
return value_.value_int64_;
}
return PROTOBUF_LONGLONG(0);
}
inline void StructuredEventProto_Metric::_internal_set_value_int64(::PROTOBUF_NAMESPACE_ID::int64 value) {
if (!_internal_has_value_int64()) {
clear_value();
set_has_value_int64();
}
value_.value_int64_ = value;
}
inline ::PROTOBUF_NAMESPACE_ID::int64 StructuredEventProto_Metric::value_int64() const {
// @@protoc_insertion_point(field_get:metrics.StructuredEventProto.Metric.value_int64)
return _internal_value_int64();
}
inline void StructuredEventProto_Metric::set_value_int64(::PROTOBUF_NAMESPACE_ID::int64 value) {
_internal_set_value_int64(value);
// @@protoc_insertion_point(field_set:metrics.StructuredEventProto.Metric.value_int64)
}
// optional string value_string = 4;
inline bool StructuredEventProto_Metric::_internal_has_value_string() const {
return value_case() == kValueString;
}
inline bool StructuredEventProto_Metric::has_value_string() const {
return _internal_has_value_string();
}
inline void StructuredEventProto_Metric::set_has_value_string() {
_oneof_case_[0] = kValueString;
}
inline void StructuredEventProto_Metric::clear_value_string() {
if (_internal_has_value_string()) {
value_.value_string_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
clear_has_value();
}
}
inline const std::string& StructuredEventProto_Metric::value_string() const {
// @@protoc_insertion_point(field_get:metrics.StructuredEventProto.Metric.value_string)
return _internal_value_string();
}
inline void StructuredEventProto_Metric::set_value_string(const std::string& value) {
_internal_set_value_string(value);
// @@protoc_insertion_point(field_set:metrics.StructuredEventProto.Metric.value_string)
}
inline std::string* StructuredEventProto_Metric::mutable_value_string() {
// @@protoc_insertion_point(field_mutable:metrics.StructuredEventProto.Metric.value_string)
return _internal_mutable_value_string();
}
inline const std::string& StructuredEventProto_Metric::_internal_value_string() const {
if (_internal_has_value_string()) {
return value_.value_string_.GetNoArena();
}
return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
}
inline void StructuredEventProto_Metric::_internal_set_value_string(const std::string& value) {
if (!_internal_has_value_string()) {
clear_value();
set_has_value_string();
value_.value_string_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
value_.value_string_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
}
inline void StructuredEventProto_Metric::set_value_string(std::string&& value) {
// @@protoc_insertion_point(field_set:metrics.StructuredEventProto.Metric.value_string)
if (!_internal_has_value_string()) {
clear_value();
set_has_value_string();
value_.value_string_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
value_.value_string_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
// @@protoc_insertion_point(field_set_rvalue:metrics.StructuredEventProto.Metric.value_string)
}
inline void StructuredEventProto_Metric::set_value_string(const char* value) {
GOOGLE_DCHECK(value != nullptr);
if (!_internal_has_value_string()) {
clear_value();
set_has_value_string();
value_.value_string_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
value_.value_string_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
::std::string(value));
// @@protoc_insertion_point(field_set_char:metrics.StructuredEventProto.Metric.value_string)
}
inline void StructuredEventProto_Metric::set_value_string(const char* value, size_t size) {
if (!_internal_has_value_string()) {
clear_value();
set_has_value_string();
value_.value_string_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
value_.value_string_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
reinterpret_cast<const char*>(value), size));
// @@protoc_insertion_point(field_set_pointer:metrics.StructuredEventProto.Metric.value_string)
}
inline std::string* StructuredEventProto_Metric::_internal_mutable_value_string() {
if (!_internal_has_value_string()) {
clear_value();
set_has_value_string();
value_.value_string_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
return value_.value_string_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
inline std::string* StructuredEventProto_Metric::release_value_string() {
// @@protoc_insertion_point(field_release:metrics.StructuredEventProto.Metric.value_string)
if (_internal_has_value_string()) {
clear_has_value();
return value_.value_string_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
} else {
return nullptr;
}
}
inline void StructuredEventProto_Metric::set_allocated_value_string(std::string* value_string) {
if (has_value()) {
clear_value();
}
if (value_string != nullptr) {
set_has_value_string();
value_.value_string_.UnsafeSetDefault(value_string);
}
// @@protoc_insertion_point(field_set_allocated:metrics.StructuredEventProto.Metric.value_string)
}
inline bool StructuredEventProto_Metric::has_value() const {
return value_case() != VALUE_NOT_SET;
}
inline void StructuredEventProto_Metric::clear_has_value() {
_oneof_case_[0] = VALUE_NOT_SET;
}
inline StructuredEventProto_Metric::ValueCase StructuredEventProto_Metric::value_case() const {
return StructuredEventProto_Metric::ValueCase(_oneof_case_[0]);
}
// -------------------------------------------------------------------
// StructuredEventProto
// optional fixed64 profile_event_id = 1;
inline bool StructuredEventProto::_internal_has_profile_event_id() const {
bool value = (_has_bits_[0] & 0x00000001u) != 0;
return value;
}
inline bool StructuredEventProto::has_profile_event_id() const {
return _internal_has_profile_event_id();
}
inline void StructuredEventProto::clear_profile_event_id() {
profile_event_id_ = PROTOBUF_ULONGLONG(0);
_has_bits_[0] &= ~0x00000001u;
}
inline ::PROTOBUF_NAMESPACE_ID::uint64 StructuredEventProto::_internal_profile_event_id() const {
return profile_event_id_;
}
inline ::PROTOBUF_NAMESPACE_ID::uint64 StructuredEventProto::profile_event_id() const {
// @@protoc_insertion_point(field_get:metrics.StructuredEventProto.profile_event_id)
return _internal_profile_event_id();
}
inline void StructuredEventProto::_internal_set_profile_event_id(::PROTOBUF_NAMESPACE_ID::uint64 value) {
_has_bits_[0] |= 0x00000001u;
profile_event_id_ = value;
}
inline void StructuredEventProto::set_profile_event_id(::PROTOBUF_NAMESPACE_ID::uint64 value) {
_internal_set_profile_event_id(value);
// @@protoc_insertion_point(field_set:metrics.StructuredEventProto.profile_event_id)
}
// optional fixed64 event_name_hash = 2;
inline bool StructuredEventProto::_internal_has_event_name_hash() const {
bool value = (_has_bits_[0] & 0x00000002u) != 0;
return value;
}
inline bool StructuredEventProto::has_event_name_hash() const {
return _internal_has_event_name_hash();
}
inline void StructuredEventProto::clear_event_name_hash() {
event_name_hash_ = PROTOBUF_ULONGLONG(0);
_has_bits_[0] &= ~0x00000002u;
}
inline ::PROTOBUF_NAMESPACE_ID::uint64 StructuredEventProto::_internal_event_name_hash() const {
return event_name_hash_;
}
inline ::PROTOBUF_NAMESPACE_ID::uint64 StructuredEventProto::event_name_hash() const {
// @@protoc_insertion_point(field_get:metrics.StructuredEventProto.event_name_hash)
return _internal_event_name_hash();
}
inline void StructuredEventProto::_internal_set_event_name_hash(::PROTOBUF_NAMESPACE_ID::uint64 value) {
_has_bits_[0] |= 0x00000002u;
event_name_hash_ = value;
}
inline void StructuredEventProto::set_event_name_hash(::PROTOBUF_NAMESPACE_ID::uint64 value) {
_internal_set_event_name_hash(value);
// @@protoc_insertion_point(field_set:metrics.StructuredEventProto.event_name_hash)
}
// repeated .metrics.StructuredEventProto.Metric metrics = 3;
inline int StructuredEventProto::_internal_metrics_size() const {
return metrics_.size();
}
inline int StructuredEventProto::metrics_size() const {
return _internal_metrics_size();
}
inline void StructuredEventProto::clear_metrics() {
metrics_.Clear();
}
inline ::metrics::StructuredEventProto_Metric* StructuredEventProto::mutable_metrics(int index) {
// @@protoc_insertion_point(field_mutable:metrics.StructuredEventProto.metrics)
return metrics_.Mutable(index);
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::metrics::StructuredEventProto_Metric >*
StructuredEventProto::mutable_metrics() {
// @@protoc_insertion_point(field_mutable_list:metrics.StructuredEventProto.metrics)
return &metrics_;
}
inline const ::metrics::StructuredEventProto_Metric& StructuredEventProto::_internal_metrics(int index) const {
return metrics_.Get(index);
}
inline const ::metrics::StructuredEventProto_Metric& StructuredEventProto::metrics(int index) const {
// @@protoc_insertion_point(field_get:metrics.StructuredEventProto.metrics)
return _internal_metrics(index);
}
inline ::metrics::StructuredEventProto_Metric* StructuredEventProto::_internal_add_metrics() {
return metrics_.Add();
}
inline ::metrics::StructuredEventProto_Metric* StructuredEventProto::add_metrics() {
// @@protoc_insertion_point(field_add:metrics.StructuredEventProto.metrics)
return _internal_add_metrics();
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::metrics::StructuredEventProto_Metric >&
StructuredEventProto::metrics() const {
// @@protoc_insertion_point(field_list:metrics.StructuredEventProto.metrics)
return metrics_;
}
// optional .metrics.StructuredEventProto.EventType event_type = 4;
inline bool StructuredEventProto::_internal_has_event_type() const {
bool value = (_has_bits_[0] & 0x00000004u) != 0;
return value;
}
inline bool StructuredEventProto::has_event_type() const {
return _internal_has_event_type();
}
inline void StructuredEventProto::clear_event_type() {
event_type_ = 0;
_has_bits_[0] &= ~0x00000004u;
}
inline ::metrics::StructuredEventProto_EventType StructuredEventProto::_internal_event_type() const {
return static_cast< ::metrics::StructuredEventProto_EventType >(event_type_);
}
inline ::metrics::StructuredEventProto_EventType StructuredEventProto::event_type() const {
// @@protoc_insertion_point(field_get:metrics.StructuredEventProto.event_type)
return _internal_event_type();
}
inline void StructuredEventProto::_internal_set_event_type(::metrics::StructuredEventProto_EventType value) {
assert(::metrics::StructuredEventProto_EventType_IsValid(value));
_has_bits_[0] |= 0x00000004u;
event_type_ = value;
}
inline void StructuredEventProto::set_event_type(::metrics::StructuredEventProto_EventType value) {
_internal_set_event_type(value);
// @@protoc_insertion_point(field_set:metrics.StructuredEventProto.event_type)
}
// -------------------------------------------------------------------
// StructuredDataProto
// repeated .metrics.StructuredEventProto events = 1;
inline int StructuredDataProto::_internal_events_size() const {
return events_.size();
}
inline int StructuredDataProto::events_size() const {
return _internal_events_size();
}
inline void StructuredDataProto::clear_events() {
events_.Clear();
}
inline ::metrics::StructuredEventProto* StructuredDataProto::mutable_events(int index) {
// @@protoc_insertion_point(field_mutable:metrics.StructuredDataProto.events)
return events_.Mutable(index);
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::metrics::StructuredEventProto >*
StructuredDataProto::mutable_events() {
// @@protoc_insertion_point(field_mutable_list:metrics.StructuredDataProto.events)
return &events_;
}
inline const ::metrics::StructuredEventProto& StructuredDataProto::_internal_events(int index) const {
return events_.Get(index);
}
inline const ::metrics::StructuredEventProto& StructuredDataProto::events(int index) const {
// @@protoc_insertion_point(field_get:metrics.StructuredDataProto.events)
return _internal_events(index);
}
inline ::metrics::StructuredEventProto* StructuredDataProto::_internal_add_events() {
return events_.Add();
}
inline ::metrics::StructuredEventProto* StructuredDataProto::add_events() {
// @@protoc_insertion_point(field_add:metrics.StructuredDataProto.events)
return _internal_add_events();
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::metrics::StructuredEventProto >&
StructuredDataProto::events() const {
// @@protoc_insertion_point(field_list:metrics.StructuredDataProto.events)
return events_;
}
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif // __GNUC__
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// @@protoc_insertion_point(namespace_scope)
} // namespace metrics
PROTOBUF_NAMESPACE_OPEN
template <> struct is_proto_enum< ::metrics::StructuredEventProto_EventType> : ::std::true_type {};
PROTOBUF_NAMESPACE_CLOSE
// @@protoc_insertion_point(global_scope)
#include <google/protobuf/port_undef.inc>
#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_structured_5fdata_2eproto