File calculator_options.pb.cc
File List > framework > calculator_options.pb.cc
Go to the documentation of this file
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: mediapipe/framework/calculator_options.proto
#include "mediapipe/framework/calculator_options.pb.h"
#include <algorithm>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/wire_format_lite.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/reflection_ops.h>
#include <google/protobuf/wire_format.h>
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>
PROTOBUF_PRAGMA_INIT_SEG
namespace mediapipe {
constexpr CalculatorOptions::CalculatorOptions(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
: merge_fields_(false){}
struct CalculatorOptionsDefaultTypeInternal {
constexpr CalculatorOptionsDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
~CalculatorOptionsDefaultTypeInternal() {}
union {
CalculatorOptions _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT CalculatorOptionsDefaultTypeInternal _CalculatorOptions_default_instance_;
} // namespace mediapipe
static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_mediapipe_2fframework_2fcalculator_5foptions_2eproto[1];
static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_mediapipe_2fframework_2fcalculator_5foptions_2eproto = nullptr;
static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_mediapipe_2fframework_2fcalculator_5foptions_2eproto = nullptr;
const uint32_t TableStruct_mediapipe_2fframework_2fcalculator_5foptions_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
PROTOBUF_FIELD_OFFSET(::mediapipe::CalculatorOptions, _has_bits_),
PROTOBUF_FIELD_OFFSET(::mediapipe::CalculatorOptions, _internal_metadata_),
PROTOBUF_FIELD_OFFSET(::mediapipe::CalculatorOptions, _extensions_),
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::mediapipe::CalculatorOptions, merge_fields_),
0,
};
static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
{ 0, 7, -1, sizeof(::mediapipe::CalculatorOptions)},
};
static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::mediapipe::_CalculatorOptions_default_instance_),
};
const char descriptor_table_protodef_mediapipe_2fframework_2fcalculator_5foptions_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
"\n,mediapipe/framework/calculator_options"
".proto\022\tmediapipe\"9\n\021CalculatorOptions\022\030"
"\n\014merge_fields\030\001 \001(\010B\002\030\001*\n\010\240\234\001\020\200\200\200\200\002B4\n\032"
"com.google.mediapipe.protoB\026CalculatorOp"
"tionsProto"
;
static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_mediapipe_2fframework_2fcalculator_5foptions_2eproto_once;
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_mediapipe_2fframework_2fcalculator_5foptions_2eproto = {
false, false, 170, descriptor_table_protodef_mediapipe_2fframework_2fcalculator_5foptions_2eproto, "mediapipe/framework/calculator_options.proto",
&descriptor_table_mediapipe_2fframework_2fcalculator_5foptions_2eproto_once, nullptr, 0, 1,
schemas, file_default_instances, TableStruct_mediapipe_2fframework_2fcalculator_5foptions_2eproto::offsets,
file_level_metadata_mediapipe_2fframework_2fcalculator_5foptions_2eproto, file_level_enum_descriptors_mediapipe_2fframework_2fcalculator_5foptions_2eproto, file_level_service_descriptors_mediapipe_2fframework_2fcalculator_5foptions_2eproto,
};
PROTOBUF_ATTRIBUTE_WEAK const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* descriptor_table_mediapipe_2fframework_2fcalculator_5foptions_2eproto_getter() {
return &descriptor_table_mediapipe_2fframework_2fcalculator_5foptions_2eproto;
}
// Force running AddDescriptors() at dynamic initialization time.
PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_mediapipe_2fframework_2fcalculator_5foptions_2eproto(&descriptor_table_mediapipe_2fframework_2fcalculator_5foptions_2eproto);
namespace mediapipe {
// ===================================================================
class CalculatorOptions::_Internal {
public:
using HasBits = decltype(std::declval<CalculatorOptions>()._has_bits_);
static void set_has_merge_fields(HasBits* has_bits) {
(*has_bits)[0] |= 1u;
}
};
CalculatorOptions::CalculatorOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
_extensions_(arena) {
SharedCtor();
if (!is_message_owned) {
RegisterArenaDtor(arena);
}
// @@protoc_insertion_point(arena_constructor:mediapipe.CalculatorOptions)
}
CalculatorOptions::CalculatorOptions(const CalculatorOptions& from)
: ::PROTOBUF_NAMESPACE_ID::Message(),
_has_bits_(from._has_bits_) {
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
_extensions_.MergeFrom(internal_default_instance(), from._extensions_);
merge_fields_ = from.merge_fields_;
// @@protoc_insertion_point(copy_constructor:mediapipe.CalculatorOptions)
}
inline void CalculatorOptions::SharedCtor() {
merge_fields_ = false;
}
CalculatorOptions::~CalculatorOptions() {
// @@protoc_insertion_point(destructor:mediapipe.CalculatorOptions)
if (GetArenaForAllocation() != nullptr) return;
SharedDtor();
_internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
inline void CalculatorOptions::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
}
void CalculatorOptions::ArenaDtor(void* object) {
CalculatorOptions* _this = reinterpret_cast< CalculatorOptions* >(object);
(void)_this;
}
void CalculatorOptions::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
}
void CalculatorOptions::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
void CalculatorOptions::Clear() {
// @@protoc_insertion_point(message_clear_start:mediapipe.CalculatorOptions)
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_extensions_.Clear();
merge_fields_ = false;
_has_bits_.Clear();
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
const char* CalculatorOptions::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
_Internal::HasBits has_bits{};
while (!ctx->Done(&ptr)) {
uint32_t tag;
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
switch (tag >> 3) {
// optional bool merge_fields = 1 [deprecated = true];
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
_Internal::set_has_merge_fields(&has_bits);
merge_fields_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
handle_unusual:
if ((tag == 0) || ((tag & 7) == 4)) {
CHK_(ptr);
ctx->SetLastTag(tag);
goto message_done;
}
if ((160000u <= tag)) {
ptr = _extensions_.ParseField(tag, ptr, internal_default_instance(), &_internal_metadata_, ctx);
CHK_(ptr != nullptr);
continue;
}
ptr = UnknownFieldParse(
tag,
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
ptr, ctx);
CHK_(ptr != nullptr);
} // while
message_done:
_has_bits_.Or(has_bits);
return ptr;
failure:
ptr = nullptr;
goto message_done;
#undef CHK_
}
uint8_t* CalculatorOptions::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:mediapipe.CalculatorOptions)
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
cached_has_bits = _has_bits_[0];
// optional bool merge_fields = 1 [deprecated = true];
if (cached_has_bits & 0x00000001u) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_merge_fields(), target);
}
// Extension range [20000, 536870912)
target = _extensions_._InternalSerialize(
internal_default_instance(), 20000, 536870912, target, stream);
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:mediapipe.CalculatorOptions)
return target;
}
size_t CalculatorOptions::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:mediapipe.CalculatorOptions)
size_t total_size = 0;
total_size += _extensions_.ByteSize();
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// optional bool merge_fields = 1 [deprecated = true];
cached_has_bits = _has_bits_[0];
if (cached_has_bits & 0x00000001u) {
total_size += 1 + 1;
}
return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CalculatorOptions::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
CalculatorOptions::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CalculatorOptions::GetClassData() const { return &_class_data_; }
void CalculatorOptions::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
const ::PROTOBUF_NAMESPACE_ID::Message& from) {
static_cast<CalculatorOptions *>(to)->MergeFrom(
static_cast<const CalculatorOptions &>(from));
}
void CalculatorOptions::MergeFrom(const CalculatorOptions& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:mediapipe.CalculatorOptions)
GOOGLE_DCHECK_NE(&from, this);
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (from._internal_has_merge_fields()) {
_internal_set_merge_fields(from._internal_merge_fields());
}
_extensions_.MergeFrom(internal_default_instance(), from._extensions_);
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
void CalculatorOptions::CopyFrom(const CalculatorOptions& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:mediapipe.CalculatorOptions)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool CalculatorOptions::IsInitialized() const {
if (!_extensions_.IsInitialized()) {
return false;
}
return true;
}
void CalculatorOptions::InternalSwap(CalculatorOptions* other) {
using std::swap;
_extensions_.InternalSwap(&other->_extensions_);
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
swap(_has_bits_[0], other->_has_bits_[0]);
swap(merge_fields_, other->merge_fields_);
}
::PROTOBUF_NAMESPACE_ID::Metadata CalculatorOptions::GetMetadata() const {
return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
&descriptor_table_mediapipe_2fframework_2fcalculator_5foptions_2eproto_getter, &descriptor_table_mediapipe_2fframework_2fcalculator_5foptions_2eproto_once,
file_level_metadata_mediapipe_2fframework_2fcalculator_5foptions_2eproto[0]);
}
// @@protoc_insertion_point(namespace_scope)
} // namespace mediapipe
PROTOBUF_NAMESPACE_OPEN
template<> PROTOBUF_NOINLINE ::mediapipe::CalculatorOptions* Arena::CreateMaybeMessage< ::mediapipe::CalculatorOptions >(Arena* arena) {
return Arena::CreateMessageInternal< ::mediapipe::CalculatorOptions >(arena);
}
PROTOBUF_NAMESPACE_CLOSE
// @@protoc_insertion_point(global_scope)
#include <google/protobuf/port_undef.inc>