blob: a36bd9faf2290798175de5bc95231220da15c885 [file] [log] [blame]
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ExecutionProtos.proto
#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "ExecutionProtos.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/once.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/wire_format_lite_inl.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)
namespace exec {
namespace bit {
namespace {
const ::google::protobuf::Descriptor* FragmentHandle_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
FragmentHandle_reflection_ = NULL;
} // namespace
void protobuf_AssignDesc_ExecutionProtos_2eproto() {
protobuf_AddDesc_ExecutionProtos_2eproto();
const ::google::protobuf::FileDescriptor* file =
::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
"ExecutionProtos.proto");
GOOGLE_CHECK(file != NULL);
FragmentHandle_descriptor_ = file->message_type(0);
static const int FragmentHandle_offsets_[3] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FragmentHandle, query_id_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FragmentHandle, major_fragment_id_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FragmentHandle, minor_fragment_id_),
};
FragmentHandle_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
FragmentHandle_descriptor_,
FragmentHandle::default_instance_,
FragmentHandle_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FragmentHandle, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FragmentHandle, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(FragmentHandle));
}
namespace {
GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
inline void protobuf_AssignDescriptorsOnce() {
::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
&protobuf_AssignDesc_ExecutionProtos_2eproto);
}
void protobuf_RegisterTypes(const ::std::string&) {
protobuf_AssignDescriptorsOnce();
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
FragmentHandle_descriptor_, &FragmentHandle::default_instance());
}
} // namespace
void protobuf_ShutdownFile_ExecutionProtos_2eproto() {
delete FragmentHandle::default_instance_;
delete FragmentHandle_reflection_;
}
void protobuf_AddDesc_ExecutionProtos_2eproto() {
static bool already_here = false;
if (already_here) return;
already_here = true;
GOOGLE_PROTOBUF_VERIFY_VERSION;
::exec::protobuf_AddDesc_Coordination_2eproto();
::exec::shared::protobuf_AddDesc_UserBitShared_2eproto();
::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
"\n\025ExecutionProtos.proto\022\010exec.bit\032\022Coord"
"ination.proto\032\023UserBitShared.proto\"n\n\016Fr"
"agmentHandle\022&\n\010query_id\030\001 \001(\0132\024.exec.sh"
"ared.QueryId\022\031\n\021major_fragment_id\030\002 \001(\005\022"
"\031\n\021minor_fragment_id\030\003 \001(\005B+\n\033org.apache"
".drill.exec.protoB\nExecProtosH\001", 231);
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
"ExecutionProtos.proto", &protobuf_RegisterTypes);
FragmentHandle::default_instance_ = new FragmentHandle();
FragmentHandle::default_instance_->InitAsDefaultInstance();
::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_ExecutionProtos_2eproto);
}
// Force AddDescriptors() to be called at static initialization time.
struct StaticDescriptorInitializer_ExecutionProtos_2eproto {
StaticDescriptorInitializer_ExecutionProtos_2eproto() {
protobuf_AddDesc_ExecutionProtos_2eproto();
}
} static_descriptor_initializer_ExecutionProtos_2eproto_;
// ===================================================================
#ifndef _MSC_VER
const int FragmentHandle::kQueryIdFieldNumber;
const int FragmentHandle::kMajorFragmentIdFieldNumber;
const int FragmentHandle::kMinorFragmentIdFieldNumber;
#endif // !_MSC_VER
FragmentHandle::FragmentHandle()
: ::google::protobuf::Message() {
SharedCtor();
}
void FragmentHandle::InitAsDefaultInstance() {
query_id_ = const_cast< ::exec::shared::QueryId*>(&::exec::shared::QueryId::default_instance());
}
FragmentHandle::FragmentHandle(const FragmentHandle& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void FragmentHandle::SharedCtor() {
_cached_size_ = 0;
query_id_ = NULL;
major_fragment_id_ = 0;
minor_fragment_id_ = 0;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
FragmentHandle::~FragmentHandle() {
SharedDtor();
}
void FragmentHandle::SharedDtor() {
if (this != default_instance_) {
delete query_id_;
}
}
void FragmentHandle::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* FragmentHandle::descriptor() {
protobuf_AssignDescriptorsOnce();
return FragmentHandle_descriptor_;
}
const FragmentHandle& FragmentHandle::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_ExecutionProtos_2eproto();
return *default_instance_;
}
FragmentHandle* FragmentHandle::default_instance_ = NULL;
FragmentHandle* FragmentHandle::New() const {
return new FragmentHandle;
}
void FragmentHandle::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (has_query_id()) {
if (query_id_ != NULL) query_id_->::exec::shared::QueryId::Clear();
}
major_fragment_id_ = 0;
minor_fragment_id_ = 0;
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool FragmentHandle::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional .exec.shared.QueryId query_id = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_query_id()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(16)) goto parse_major_fragment_id;
break;
}
// optional int32 major_fragment_id = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_major_fragment_id:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &major_fragment_id_)));
set_has_major_fragment_id();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(24)) goto parse_minor_fragment_id;
break;
}
// optional int32 minor_fragment_id = 3;
case 3: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_minor_fragment_id:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
input, &minor_fragment_id_)));
set_has_minor_fragment_id();
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void FragmentHandle::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// optional .exec.shared.QueryId query_id = 1;
if (has_query_id()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, this->query_id(), output);
}
// optional int32 major_fragment_id = 2;
if (has_major_fragment_id()) {
::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->major_fragment_id(), output);
}
// optional int32 minor_fragment_id = 3;
if (has_minor_fragment_id()) {
::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->minor_fragment_id(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* FragmentHandle::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// optional .exec.shared.QueryId query_id = 1;
if (has_query_id()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
1, this->query_id(), target);
}
// optional int32 major_fragment_id = 2;
if (has_major_fragment_id()) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->major_fragment_id(), target);
}
// optional int32 minor_fragment_id = 3;
if (has_minor_fragment_id()) {
target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->minor_fragment_id(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int FragmentHandle::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// optional .exec.shared.QueryId query_id = 1;
if (has_query_id()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->query_id());
}
// optional int32 major_fragment_id = 2;
if (has_major_fragment_id()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->major_fragment_id());
}
// optional int32 minor_fragment_id = 3;
if (has_minor_fragment_id()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::Int32Size(
this->minor_fragment_id());
}
}
if (!unknown_fields().empty()) {
total_size +=
::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
unknown_fields());
}
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = total_size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
return total_size;
}
void FragmentHandle::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const FragmentHandle* source =
::google::protobuf::internal::dynamic_cast_if_available<const FragmentHandle*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void FragmentHandle::MergeFrom(const FragmentHandle& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_query_id()) {
mutable_query_id()->::exec::shared::QueryId::MergeFrom(from.query_id());
}
if (from.has_major_fragment_id()) {
set_major_fragment_id(from.major_fragment_id());
}
if (from.has_minor_fragment_id()) {
set_minor_fragment_id(from.minor_fragment_id());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void FragmentHandle::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void FragmentHandle::CopyFrom(const FragmentHandle& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool FragmentHandle::IsInitialized() const {
return true;
}
void FragmentHandle::Swap(FragmentHandle* other) {
if (other != this) {
std::swap(query_id_, other->query_id_);
std::swap(major_fragment_id_, other->major_fragment_id_);
std::swap(minor_fragment_id_, other->minor_fragment_id_);
std::swap(_has_bits_[0], other->_has_bits_[0]);
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata FragmentHandle::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = FragmentHandle_descriptor_;
metadata.reflection = FragmentHandle_reflection_;
return metadata;
}
// @@protoc_insertion_point(namespace_scope)
} // namespace bit
} // namespace exec
// @@protoc_insertion_point(global_scope)