// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: mysqlx_resultset.proto

#include "mysqlx_resultset.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 _pb = ::PROTOBUF_NAMESPACE_ID;
namespace _pbi = _pb::internal;

namespace Mysqlx {
namespace Resultset {
PROTOBUF_CONSTEXPR FetchDoneMoreOutParams::FetchDoneMoreOutParams(
    ::_pbi::ConstantInitialized) {}
struct FetchDoneMoreOutParamsDefaultTypeInternal {
  PROTOBUF_CONSTEXPR FetchDoneMoreOutParamsDefaultTypeInternal()
      : _instance(::_pbi::ConstantInitialized{}) {}
  ~FetchDoneMoreOutParamsDefaultTypeInternal() {}
  union {
    FetchDoneMoreOutParams _instance;
  };
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FetchDoneMoreOutParamsDefaultTypeInternal _FetchDoneMoreOutParams_default_instance_;
PROTOBUF_CONSTEXPR FetchDoneMoreResultsets::FetchDoneMoreResultsets(
    ::_pbi::ConstantInitialized) {}
struct FetchDoneMoreResultsetsDefaultTypeInternal {
  PROTOBUF_CONSTEXPR FetchDoneMoreResultsetsDefaultTypeInternal()
      : _instance(::_pbi::ConstantInitialized{}) {}
  ~FetchDoneMoreResultsetsDefaultTypeInternal() {}
  union {
    FetchDoneMoreResultsets _instance;
  };
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FetchDoneMoreResultsetsDefaultTypeInternal _FetchDoneMoreResultsets_default_instance_;
PROTOBUF_CONSTEXPR FetchDone::FetchDone(
    ::_pbi::ConstantInitialized) {}
struct FetchDoneDefaultTypeInternal {
  PROTOBUF_CONSTEXPR FetchDoneDefaultTypeInternal()
      : _instance(::_pbi::ConstantInitialized{}) {}
  ~FetchDoneDefaultTypeInternal() {}
  union {
    FetchDone _instance;
  };
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FetchDoneDefaultTypeInternal _FetchDone_default_instance_;
PROTOBUF_CONSTEXPR FetchSuspended::FetchSuspended(
    ::_pbi::ConstantInitialized) {}
struct FetchSuspendedDefaultTypeInternal {
  PROTOBUF_CONSTEXPR FetchSuspendedDefaultTypeInternal()
      : _instance(::_pbi::ConstantInitialized{}) {}
  ~FetchSuspendedDefaultTypeInternal() {}
  union {
    FetchSuspended _instance;
  };
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FetchSuspendedDefaultTypeInternal _FetchSuspended_default_instance_;
PROTOBUF_CONSTEXPR ColumnMetaData::ColumnMetaData(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_._has_bits_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}
  , /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
  , /*decltype(_impl_.original_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
  , /*decltype(_impl_.table_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
  , /*decltype(_impl_.original_table_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
  , /*decltype(_impl_.schema_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
  , /*decltype(_impl_.catalog_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
  , /*decltype(_impl_.collation_)*/uint64_t{0u}
  , /*decltype(_impl_.fractional_digits_)*/0u
  , /*decltype(_impl_.length_)*/0u
  , /*decltype(_impl_.flags_)*/0u
  , /*decltype(_impl_.content_type_)*/0u
  , /*decltype(_impl_.type_)*/1} {}
struct ColumnMetaDataDefaultTypeInternal {
  PROTOBUF_CONSTEXPR ColumnMetaDataDefaultTypeInternal()
      : _instance(::_pbi::ConstantInitialized{}) {}
  ~ColumnMetaDataDefaultTypeInternal() {}
  union {
    ColumnMetaData _instance;
  };
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ColumnMetaDataDefaultTypeInternal _ColumnMetaData_default_instance_;
PROTOBUF_CONSTEXPR Row::Row(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.field_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}} {}
struct RowDefaultTypeInternal {
  PROTOBUF_CONSTEXPR RowDefaultTypeInternal()
      : _instance(::_pbi::ConstantInitialized{}) {}
  ~RowDefaultTypeInternal() {}
  union {
    Row _instance;
  };
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RowDefaultTypeInternal _Row_default_instance_;
}  // namespace Resultset
}  // namespace Mysqlx
static ::_pb::Metadata file_level_metadata_mysqlx_5fresultset_2eproto[6];
static const ::_pb::EnumDescriptor* file_level_enum_descriptors_mysqlx_5fresultset_2eproto[3];
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_mysqlx_5fresultset_2eproto = nullptr;

const uint32_t TableStruct_mysqlx_5fresultset_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  ~0u,  // no _has_bits_
  PROTOBUF_FIELD_OFFSET(::Mysqlx::Resultset::FetchDoneMoreOutParams, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  ~0u,  // no _inlined_string_donated_
  ~0u,  // no _has_bits_
  PROTOBUF_FIELD_OFFSET(::Mysqlx::Resultset::FetchDoneMoreResultsets, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  ~0u,  // no _inlined_string_donated_
  ~0u,  // no _has_bits_
  PROTOBUF_FIELD_OFFSET(::Mysqlx::Resultset::FetchDone, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  ~0u,  // no _inlined_string_donated_
  ~0u,  // no _has_bits_
  PROTOBUF_FIELD_OFFSET(::Mysqlx::Resultset::FetchSuspended, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  ~0u,  // no _inlined_string_donated_
  PROTOBUF_FIELD_OFFSET(::Mysqlx::Resultset::ColumnMetaData, _impl_._has_bits_),
  PROTOBUF_FIELD_OFFSET(::Mysqlx::Resultset::ColumnMetaData, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  ~0u,  // no _inlined_string_donated_
  PROTOBUF_FIELD_OFFSET(::Mysqlx::Resultset::ColumnMetaData, _impl_.type_),
  PROTOBUF_FIELD_OFFSET(::Mysqlx::Resultset::ColumnMetaData, _impl_.name_),
  PROTOBUF_FIELD_OFFSET(::Mysqlx::Resultset::ColumnMetaData, _impl_.original_name_),
  PROTOBUF_FIELD_OFFSET(::Mysqlx::Resultset::ColumnMetaData, _impl_.table_),
  PROTOBUF_FIELD_OFFSET(::Mysqlx::Resultset::ColumnMetaData, _impl_.original_table_),
  PROTOBUF_FIELD_OFFSET(::Mysqlx::Resultset::ColumnMetaData, _impl_.schema_),
  PROTOBUF_FIELD_OFFSET(::Mysqlx::Resultset::ColumnMetaData, _impl_.catalog_),
  PROTOBUF_FIELD_OFFSET(::Mysqlx::Resultset::ColumnMetaData, _impl_.collation_),
  PROTOBUF_FIELD_OFFSET(::Mysqlx::Resultset::ColumnMetaData, _impl_.fractional_digits_),
  PROTOBUF_FIELD_OFFSET(::Mysqlx::Resultset::ColumnMetaData, _impl_.length_),
  PROTOBUF_FIELD_OFFSET(::Mysqlx::Resultset::ColumnMetaData, _impl_.flags_),
  PROTOBUF_FIELD_OFFSET(::Mysqlx::Resultset::ColumnMetaData, _impl_.content_type_),
  11,
  0,
  1,
  2,
  3,
  4,
  5,
  6,
  7,
  8,
  9,
  10,
  ~0u,  // no _has_bits_
  PROTOBUF_FIELD_OFFSET(::Mysqlx::Resultset::Row, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  ~0u,  // no _inlined_string_donated_
  PROTOBUF_FIELD_OFFSET(::Mysqlx::Resultset::Row, _impl_.field_),
};
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  { 0, -1, -1, sizeof(::Mysqlx::Resultset::FetchDoneMoreOutParams)},
  { 6, -1, -1, sizeof(::Mysqlx::Resultset::FetchDoneMoreResultsets)},
  { 12, -1, -1, sizeof(::Mysqlx::Resultset::FetchDone)},
  { 18, -1, -1, sizeof(::Mysqlx::Resultset::FetchSuspended)},
  { 24, 42, -1, sizeof(::Mysqlx::Resultset::ColumnMetaData)},
  { 54, -1, -1, sizeof(::Mysqlx::Resultset::Row)},
};

static const ::_pb::Message* const file_default_instances[] = {
  &::Mysqlx::Resultset::_FetchDoneMoreOutParams_default_instance_._instance,
  &::Mysqlx::Resultset::_FetchDoneMoreResultsets_default_instance_._instance,
  &::Mysqlx::Resultset::_FetchDone_default_instance_._instance,
  &::Mysqlx::Resultset::_FetchSuspended_default_instance_._instance,
  &::Mysqlx::Resultset::_ColumnMetaData_default_instance_._instance,
  &::Mysqlx::Resultset::_Row_default_instance_._instance,
};

const char descriptor_table_protodef_mysqlx_5fresultset_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
  "\n\026mysqlx_resultset.proto\022\020Mysqlx.Results"
  "et\032\014mysqlx.proto\"\036\n\026FetchDoneMoreOutPara"
  "ms:\004\220\3520\022\"\037\n\027FetchDoneMoreResultsets:\004\220\3520"
  "\020\"\021\n\tFetchDone:\004\220\3520\016\"\026\n\016FetchSuspended:\004"
  "\220\3520\017\"\245\003\n\016ColumnMetaData\0228\n\004type\030\001 \002(\0162*."
  "Mysqlx.Resultset.ColumnMetaData.FieldTyp"
  "e\022\014\n\004name\030\002 \001(\014\022\025\n\roriginal_name\030\003 \001(\014\022\r"
  "\n\005table\030\004 \001(\014\022\026\n\016original_table\030\005 \001(\014\022\016\n"
  "\006schema\030\006 \001(\014\022\017\n\007catalog\030\007 \001(\014\022\021\n\tcollat"
  "ion\030\010 \001(\004\022\031\n\021fractional_digits\030\t \001(\r\022\016\n\006"
  "length\030\n \001(\r\022\r\n\005flags\030\013 \001(\r\022\024\n\014content_t"
  "ype\030\014 \001(\r\"\202\001\n\tFieldType\022\010\n\004SINT\020\001\022\010\n\004UIN"
  "T\020\002\022\n\n\006DOUBLE\020\005\022\t\n\005FLOAT\020\006\022\t\n\005BYTES\020\007\022\010\n"
  "\004TIME\020\n\022\014\n\010DATETIME\020\014\022\007\n\003SET\020\017\022\010\n\004ENUM\020\020"
  "\022\007\n\003BIT\020\021\022\013\n\007DECIMAL\020\022:\004\220\3520\014\"\032\n\003Row\022\r\n\005f"
  "ield\030\001 \003(\014:\004\220\3520\r*4\n\021ContentType_BYTES\022\014\n"
  "\010GEOMETRY\020\001\022\010\n\004JSON\020\002\022\007\n\003XML\020\003*.\n\024Conten"
  "tType_DATETIME\022\010\n\004DATE\020\001\022\014\n\010DATETIME\020\002B\031"
  "\n\027com.mysql.cj.x.protobuf"
  ;
static const ::_pbi::DescriptorTable* const descriptor_table_mysqlx_5fresultset_2eproto_deps[1] = {
  &::descriptor_table_mysqlx_2eproto,
};
static ::_pbi::once_flag descriptor_table_mysqlx_5fresultset_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_mysqlx_5fresultset_2eproto = {
    false, false, 745, descriptor_table_protodef_mysqlx_5fresultset_2eproto,
    "mysqlx_resultset.proto",
    &descriptor_table_mysqlx_5fresultset_2eproto_once, descriptor_table_mysqlx_5fresultset_2eproto_deps, 1, 6,
    schemas, file_default_instances, TableStruct_mysqlx_5fresultset_2eproto::offsets,
    file_level_metadata_mysqlx_5fresultset_2eproto, file_level_enum_descriptors_mysqlx_5fresultset_2eproto,
    file_level_service_descriptors_mysqlx_5fresultset_2eproto,
};
PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_mysqlx_5fresultset_2eproto_getter() {
  return &descriptor_table_mysqlx_5fresultset_2eproto;
}

// Force running AddDescriptors() at dynamic initialization time.
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_mysqlx_5fresultset_2eproto(&descriptor_table_mysqlx_5fresultset_2eproto);
namespace Mysqlx {
namespace Resultset {
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ColumnMetaData_FieldType_descriptor() {
  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_mysqlx_5fresultset_2eproto);
  return file_level_enum_descriptors_mysqlx_5fresultset_2eproto[0];
}
bool ColumnMetaData_FieldType_IsValid(int value) {
  switch (value) {
    case 1:
    case 2:
    case 5:
    case 6:
    case 7:
    case 10:
    case 12:
    case 15:
    case 16:
    case 17:
    case 18:
      return true;
    default:
      return false;
  }
}

#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
constexpr ColumnMetaData_FieldType ColumnMetaData::SINT;
constexpr ColumnMetaData_FieldType ColumnMetaData::UINT;
constexpr ColumnMetaData_FieldType ColumnMetaData::DOUBLE;
constexpr ColumnMetaData_FieldType ColumnMetaData::FLOAT;
constexpr ColumnMetaData_FieldType ColumnMetaData::BYTES;
constexpr ColumnMetaData_FieldType ColumnMetaData::TIME;
constexpr ColumnMetaData_FieldType ColumnMetaData::DATETIME;
constexpr ColumnMetaData_FieldType ColumnMetaData::SET;
constexpr ColumnMetaData_FieldType ColumnMetaData::ENUM;
constexpr ColumnMetaData_FieldType ColumnMetaData::BIT;
constexpr ColumnMetaData_FieldType ColumnMetaData::DECIMAL;
constexpr ColumnMetaData_FieldType ColumnMetaData::FieldType_MIN;
constexpr ColumnMetaData_FieldType ColumnMetaData::FieldType_MAX;
constexpr int ColumnMetaData::FieldType_ARRAYSIZE;
#endif  // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ContentType_BYTES_descriptor() {
  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_mysqlx_5fresultset_2eproto);
  return file_level_enum_descriptors_mysqlx_5fresultset_2eproto[1];
}
bool ContentType_BYTES_IsValid(int value) {
  switch (value) {
    case 1:
    case 2:
    case 3:
      return true;
    default:
      return false;
  }
}

const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ContentType_DATETIME_descriptor() {
  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_mysqlx_5fresultset_2eproto);
  return file_level_enum_descriptors_mysqlx_5fresultset_2eproto[2];
}
bool ContentType_DATETIME_IsValid(int value) {
  switch (value) {
    case 1:
    case 2:
      return true;
    default:
      return false;
  }
}


// ===================================================================

class FetchDoneMoreOutParams::_Internal {
 public:
};

FetchDoneMoreOutParams::FetchDoneMoreOutParams(::PROTOBUF_NAMESPACE_ID::Arena* arena,
                         bool is_message_owned)
  : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
  // @@protoc_insertion_point(arena_constructor:Mysqlx.Resultset.FetchDoneMoreOutParams)
}
FetchDoneMoreOutParams::FetchDoneMoreOutParams(const FetchDoneMoreOutParams& from)
  : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
  FetchDoneMoreOutParams* const _this = this; (void)_this;
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  // @@protoc_insertion_point(copy_constructor:Mysqlx.Resultset.FetchDoneMoreOutParams)
}





const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FetchDoneMoreOutParams::_class_data_ = {
    ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
    ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FetchDoneMoreOutParams::GetClassData() const { return &_class_data_; }







::PROTOBUF_NAMESPACE_ID::Metadata FetchDoneMoreOutParams::GetMetadata() const {
  return ::_pbi::AssignDescriptors(
      &descriptor_table_mysqlx_5fresultset_2eproto_getter, &descriptor_table_mysqlx_5fresultset_2eproto_once,
      file_level_metadata_mysqlx_5fresultset_2eproto[0]);
}

// ===================================================================

class FetchDoneMoreResultsets::_Internal {
 public:
};

FetchDoneMoreResultsets::FetchDoneMoreResultsets(::PROTOBUF_NAMESPACE_ID::Arena* arena,
                         bool is_message_owned)
  : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
  // @@protoc_insertion_point(arena_constructor:Mysqlx.Resultset.FetchDoneMoreResultsets)
}
FetchDoneMoreResultsets::FetchDoneMoreResultsets(const FetchDoneMoreResultsets& from)
  : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
  FetchDoneMoreResultsets* const _this = this; (void)_this;
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  // @@protoc_insertion_point(copy_constructor:Mysqlx.Resultset.FetchDoneMoreResultsets)
}





const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FetchDoneMoreResultsets::_class_data_ = {
    ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
    ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FetchDoneMoreResultsets::GetClassData() const { return &_class_data_; }







::PROTOBUF_NAMESPACE_ID::Metadata FetchDoneMoreResultsets::GetMetadata() const {
  return ::_pbi::AssignDescriptors(
      &descriptor_table_mysqlx_5fresultset_2eproto_getter, &descriptor_table_mysqlx_5fresultset_2eproto_once,
      file_level_metadata_mysqlx_5fresultset_2eproto[1]);
}

// ===================================================================

class FetchDone::_Internal {
 public:
};

FetchDone::FetchDone(::PROTOBUF_NAMESPACE_ID::Arena* arena,
                         bool is_message_owned)
  : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
  // @@protoc_insertion_point(arena_constructor:Mysqlx.Resultset.FetchDone)
}
FetchDone::FetchDone(const FetchDone& from)
  : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
  FetchDone* const _this = this; (void)_this;
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  // @@protoc_insertion_point(copy_constructor:Mysqlx.Resultset.FetchDone)
}





const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FetchDone::_class_data_ = {
    ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
    ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FetchDone::GetClassData() const { return &_class_data_; }







::PROTOBUF_NAMESPACE_ID::Metadata FetchDone::GetMetadata() const {
  return ::_pbi::AssignDescriptors(
      &descriptor_table_mysqlx_5fresultset_2eproto_getter, &descriptor_table_mysqlx_5fresultset_2eproto_once,
      file_level_metadata_mysqlx_5fresultset_2eproto[2]);
}

// ===================================================================

class FetchSuspended::_Internal {
 public:
};

FetchSuspended::FetchSuspended(::PROTOBUF_NAMESPACE_ID::Arena* arena,
                         bool is_message_owned)
  : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
  // @@protoc_insertion_point(arena_constructor:Mysqlx.Resultset.FetchSuspended)
}
FetchSuspended::FetchSuspended(const FetchSuspended& from)
  : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
  FetchSuspended* const _this = this; (void)_this;
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  // @@protoc_insertion_point(copy_constructor:Mysqlx.Resultset.FetchSuspended)
}





const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FetchSuspended::_class_data_ = {
    ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
    ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FetchSuspended::GetClassData() const { return &_class_data_; }







::PROTOBUF_NAMESPACE_ID::Metadata FetchSuspended::GetMetadata() const {
  return ::_pbi::AssignDescriptors(
      &descriptor_table_mysqlx_5fresultset_2eproto_getter, &descriptor_table_mysqlx_5fresultset_2eproto_once,
      file_level_metadata_mysqlx_5fresultset_2eproto[3]);
}

// ===================================================================

class ColumnMetaData::_Internal {
 public:
  using HasBits = decltype(std::declval<ColumnMetaData>()._impl_._has_bits_);
  static void set_has_type(HasBits* has_bits) {
    (*has_bits)[0] |= 2048u;
  }
  static void set_has_name(HasBits* has_bits) {
    (*has_bits)[0] |= 1u;
  }
  static void set_has_original_name(HasBits* has_bits) {
    (*has_bits)[0] |= 2u;
  }
  static void set_has_table(HasBits* has_bits) {
    (*has_bits)[0] |= 4u;
  }
  static void set_has_original_table(HasBits* has_bits) {
    (*has_bits)[0] |= 8u;
  }
  static void set_has_schema(HasBits* has_bits) {
    (*has_bits)[0] |= 16u;
  }
  static void set_has_catalog(HasBits* has_bits) {
    (*has_bits)[0] |= 32u;
  }
  static void set_has_collation(HasBits* has_bits) {
    (*has_bits)[0] |= 64u;
  }
  static void set_has_fractional_digits(HasBits* has_bits) {
    (*has_bits)[0] |= 128u;
  }
  static void set_has_length(HasBits* has_bits) {
    (*has_bits)[0] |= 256u;
  }
  static void set_has_flags(HasBits* has_bits) {
    (*has_bits)[0] |= 512u;
  }
  static void set_has_content_type(HasBits* has_bits) {
    (*has_bits)[0] |= 1024u;
  }
  static bool MissingRequiredFields(const HasBits& has_bits) {
    return ((has_bits[0] & 0x00000800) ^ 0x00000800) != 0;
  }
};

ColumnMetaData::ColumnMetaData(::PROTOBUF_NAMESPACE_ID::Arena* arena,
                         bool is_message_owned)
  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  SharedCtor(arena, is_message_owned);
  // @@protoc_insertion_point(arena_constructor:Mysqlx.Resultset.ColumnMetaData)
}
ColumnMetaData::ColumnMetaData(const ColumnMetaData& from)
  : ::PROTOBUF_NAMESPACE_ID::Message() {
  ColumnMetaData* const _this = this; (void)_this;
  new (&_impl_) Impl_{
      decltype(_impl_._has_bits_){from._impl_._has_bits_}
    , /*decltype(_impl_._cached_size_)*/{}
    , decltype(_impl_.name_){}
    , decltype(_impl_.original_name_){}
    , decltype(_impl_.table_){}
    , decltype(_impl_.original_table_){}
    , decltype(_impl_.schema_){}
    , decltype(_impl_.catalog_){}
    , decltype(_impl_.collation_){}
    , decltype(_impl_.fractional_digits_){}
    , decltype(_impl_.length_){}
    , decltype(_impl_.flags_){}
    , decltype(_impl_.content_type_){}
    , decltype(_impl_.type_){}};

  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  _impl_.name_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
    _impl_.name_.Set("", GetArenaForAllocation());
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (from._internal_has_name()) {
    _this->_impl_.name_.Set(from._internal_name(), 
      _this->GetArenaForAllocation());
  }
  _impl_.original_name_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
    _impl_.original_name_.Set("", GetArenaForAllocation());
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (from._internal_has_original_name()) {
    _this->_impl_.original_name_.Set(from._internal_original_name(), 
      _this->GetArenaForAllocation());
  }
  _impl_.table_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
    _impl_.table_.Set("", GetArenaForAllocation());
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (from._internal_has_table()) {
    _this->_impl_.table_.Set(from._internal_table(), 
      _this->GetArenaForAllocation());
  }
  _impl_.original_table_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
    _impl_.original_table_.Set("", GetArenaForAllocation());
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (from._internal_has_original_table()) {
    _this->_impl_.original_table_.Set(from._internal_original_table(), 
      _this->GetArenaForAllocation());
  }
  _impl_.schema_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
    _impl_.schema_.Set("", GetArenaForAllocation());
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (from._internal_has_schema()) {
    _this->_impl_.schema_.Set(from._internal_schema(), 
      _this->GetArenaForAllocation());
  }
  _impl_.catalog_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
    _impl_.catalog_.Set("", GetArenaForAllocation());
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (from._internal_has_catalog()) {
    _this->_impl_.catalog_.Set(from._internal_catalog(), 
      _this->GetArenaForAllocation());
  }
  ::memcpy(&_impl_.collation_, &from._impl_.collation_,
    static_cast<size_t>(reinterpret_cast<char*>(&_impl_.type_) -
    reinterpret_cast<char*>(&_impl_.collation_)) + sizeof(_impl_.type_));
  // @@protoc_insertion_point(copy_constructor:Mysqlx.Resultset.ColumnMetaData)
}

inline void ColumnMetaData::SharedCtor(
    ::_pb::Arena* arena, bool is_message_owned) {
  (void)arena;
  (void)is_message_owned;
  new (&_impl_) Impl_{
      decltype(_impl_._has_bits_){}
    , /*decltype(_impl_._cached_size_)*/{}
    , decltype(_impl_.name_){}
    , decltype(_impl_.original_name_){}
    , decltype(_impl_.table_){}
    , decltype(_impl_.original_table_){}
    , decltype(_impl_.schema_){}
    , decltype(_impl_.catalog_){}
    , decltype(_impl_.collation_){uint64_t{0u}}
    , decltype(_impl_.fractional_digits_){0u}
    , decltype(_impl_.length_){0u}
    , decltype(_impl_.flags_){0u}
    , decltype(_impl_.content_type_){0u}
    , decltype(_impl_.type_){1}
  };
  _impl_.name_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
    _impl_.name_.Set("", GetArenaForAllocation());
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  _impl_.original_name_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
    _impl_.original_name_.Set("", GetArenaForAllocation());
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  _impl_.table_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
    _impl_.table_.Set("", GetArenaForAllocation());
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  _impl_.original_table_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
    _impl_.original_table_.Set("", GetArenaForAllocation());
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  _impl_.schema_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
    _impl_.schema_.Set("", GetArenaForAllocation());
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  _impl_.catalog_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
    _impl_.catalog_.Set("", GetArenaForAllocation());
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}

ColumnMetaData::~ColumnMetaData() {
  // @@protoc_insertion_point(destructor:Mysqlx.Resultset.ColumnMetaData)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void ColumnMetaData::SharedDtor() {
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  _impl_.name_.Destroy();
  _impl_.original_name_.Destroy();
  _impl_.table_.Destroy();
  _impl_.original_table_.Destroy();
  _impl_.schema_.Destroy();
  _impl_.catalog_.Destroy();
}

void ColumnMetaData::SetCachedSize(int size) const {
  _impl_._cached_size_.Set(size);
}

void ColumnMetaData::Clear() {
// @@protoc_insertion_point(message_clear_start:Mysqlx.Resultset.ColumnMetaData)
  uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  cached_has_bits = _impl_._has_bits_[0];
  if (cached_has_bits & 0x0000003fu) {
    if (cached_has_bits & 0x00000001u) {
      _impl_.name_.ClearNonDefaultToEmpty();
    }
    if (cached_has_bits & 0x00000002u) {
      _impl_.original_name_.ClearNonDefaultToEmpty();
    }
    if (cached_has_bits & 0x00000004u) {
      _impl_.table_.ClearNonDefaultToEmpty();
    }
    if (cached_has_bits & 0x00000008u) {
      _impl_.original_table_.ClearNonDefaultToEmpty();
    }
    if (cached_has_bits & 0x00000010u) {
      _impl_.schema_.ClearNonDefaultToEmpty();
    }
    if (cached_has_bits & 0x00000020u) {
      _impl_.catalog_.ClearNonDefaultToEmpty();
    }
  }
  if (cached_has_bits & 0x000000c0u) {
    ::memset(&_impl_.collation_, 0, static_cast<size_t>(
        reinterpret_cast<char*>(&_impl_.fractional_digits_) -
        reinterpret_cast<char*>(&_impl_.collation_)) + sizeof(_impl_.fractional_digits_));
  }
  if (cached_has_bits & 0x00000f00u) {
    ::memset(&_impl_.length_, 0, static_cast<size_t>(
        reinterpret_cast<char*>(&_impl_.content_type_) -
        reinterpret_cast<char*>(&_impl_.length_)) + sizeof(_impl_.content_type_));
    _impl_.type_ = 1;
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}

const char* ColumnMetaData::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  _Internal::HasBits has_bits{};
  while (!ctx->Done(&ptr)) {
    uint32_t tag;
    ptr = ::_pbi::ReadTag(ptr, &tag);
    switch (tag >> 3) {
      // required .Mysqlx.Resultset.ColumnMetaData.FieldType type = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
          uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
          CHK_(ptr);
          if (PROTOBUF_PREDICT_TRUE(::Mysqlx::Resultset::ColumnMetaData_FieldType_IsValid(val))) {
            _internal_set_type(static_cast<::Mysqlx::Resultset::ColumnMetaData_FieldType>(val));
          } else {
            ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields());
          }
        } else
          goto handle_unusual;
        continue;
      // optional bytes name = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
          auto str = _internal_mutable_name();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // optional bytes original_name = 3;
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
          auto str = _internal_mutable_original_name();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // optional bytes table = 4;
      case 4:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
          auto str = _internal_mutable_table();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // optional bytes original_table = 5;
      case 5:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) {
          auto str = _internal_mutable_original_table();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // optional bytes schema = 6;
      case 6:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) {
          auto str = _internal_mutable_schema();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // optional bytes catalog = 7;
      case 7:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 58)) {
          auto str = _internal_mutable_catalog();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // optional uint64 collation = 8;
      case 8:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64)) {
          _Internal::set_has_collation(&has_bits);
          _impl_.collation_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // optional uint32 fractional_digits = 9;
      case 9:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 72)) {
          _Internal::set_has_fractional_digits(&has_bits);
          _impl_.fractional_digits_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // optional uint32 length = 10;
      case 10:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 80)) {
          _Internal::set_has_length(&has_bits);
          _impl_.length_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // optional uint32 flags = 11;
      case 11:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 88)) {
          _Internal::set_has_flags(&has_bits);
          _impl_.flags_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // optional uint32 content_type = 12;
      case 12:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 96)) {
          _Internal::set_has_content_type(&has_bits);
          _impl_.content_type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&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;
    }
    ptr = UnknownFieldParse(
        tag,
        _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  _impl_._has_bits_.Or(has_bits);
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

uint8_t* ColumnMetaData::_InternalSerialize(
    uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:Mysqlx.Resultset.ColumnMetaData)
  uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  cached_has_bits = _impl_._has_bits_[0];
  // required .Mysqlx.Resultset.ColumnMetaData.FieldType type = 1;
  if (cached_has_bits & 0x00000800u) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
      1, this->_internal_type(), target);
  }

  // optional bytes name = 2;
  if (cached_has_bits & 0x00000001u) {
    target = stream->WriteBytesMaybeAliased(
        2, this->_internal_name(), target);
  }

  // optional bytes original_name = 3;
  if (cached_has_bits & 0x00000002u) {
    target = stream->WriteBytesMaybeAliased(
        3, this->_internal_original_name(), target);
  }

  // optional bytes table = 4;
  if (cached_has_bits & 0x00000004u) {
    target = stream->WriteBytesMaybeAliased(
        4, this->_internal_table(), target);
  }

  // optional bytes original_table = 5;
  if (cached_has_bits & 0x00000008u) {
    target = stream->WriteBytesMaybeAliased(
        5, this->_internal_original_table(), target);
  }

  // optional bytes schema = 6;
  if (cached_has_bits & 0x00000010u) {
    target = stream->WriteBytesMaybeAliased(
        6, this->_internal_schema(), target);
  }

  // optional bytes catalog = 7;
  if (cached_has_bits & 0x00000020u) {
    target = stream->WriteBytesMaybeAliased(
        7, this->_internal_catalog(), target);
  }

  // optional uint64 collation = 8;
  if (cached_has_bits & 0x00000040u) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt64ToArray(8, this->_internal_collation(), target);
  }

  // optional uint32 fractional_digits = 9;
  if (cached_has_bits & 0x00000080u) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt32ToArray(9, this->_internal_fractional_digits(), target);
  }

  // optional uint32 length = 10;
  if (cached_has_bits & 0x00000100u) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt32ToArray(10, this->_internal_length(), target);
  }

  // optional uint32 flags = 11;
  if (cached_has_bits & 0x00000200u) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt32ToArray(11, this->_internal_flags(), target);
  }

  // optional uint32 content_type = 12;
  if (cached_has_bits & 0x00000400u) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt32ToArray(12, this->_internal_content_type(), target);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = ::_pbi::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:Mysqlx.Resultset.ColumnMetaData)
  return target;
}

size_t ColumnMetaData::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:Mysqlx.Resultset.ColumnMetaData)
  size_t total_size = 0;

  // required .Mysqlx.Resultset.ColumnMetaData.FieldType type = 1;
  if (_internal_has_type()) {
    total_size += 1 +
      ::_pbi::WireFormatLite::EnumSize(this->_internal_type());
  }
  uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  cached_has_bits = _impl_._has_bits_[0];
  if (cached_has_bits & 0x000000ffu) {
    // optional bytes name = 2;
    if (cached_has_bits & 0x00000001u) {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
          this->_internal_name());
    }

    // optional bytes original_name = 3;
    if (cached_has_bits & 0x00000002u) {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
          this->_internal_original_name());
    }

    // optional bytes table = 4;
    if (cached_has_bits & 0x00000004u) {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
          this->_internal_table());
    }

    // optional bytes original_table = 5;
    if (cached_has_bits & 0x00000008u) {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
          this->_internal_original_table());
    }

    // optional bytes schema = 6;
    if (cached_has_bits & 0x00000010u) {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
          this->_internal_schema());
    }

    // optional bytes catalog = 7;
    if (cached_has_bits & 0x00000020u) {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
          this->_internal_catalog());
    }

    // optional uint64 collation = 8;
    if (cached_has_bits & 0x00000040u) {
      total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_collation());
    }

    // optional uint32 fractional_digits = 9;
    if (cached_has_bits & 0x00000080u) {
      total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_fractional_digits());
    }

  }
  if (cached_has_bits & 0x00000700u) {
    // optional uint32 length = 10;
    if (cached_has_bits & 0x00000100u) {
      total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_length());
    }

    // optional uint32 flags = 11;
    if (cached_has_bits & 0x00000200u) {
      total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_flags());
    }

    // optional uint32 content_type = 12;
    if (cached_has_bits & 0x00000400u) {
      total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_content_type());
    }

  }
  return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}

const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ColumnMetaData::_class_data_ = {
    ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
    ColumnMetaData::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ColumnMetaData::GetClassData() const { return &_class_data_; }


void ColumnMetaData::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
  auto* const _this = static_cast<ColumnMetaData*>(&to_msg);
  auto& from = static_cast<const ColumnMetaData&>(from_msg);
  // @@protoc_insertion_point(class_specific_merge_from_start:Mysqlx.Resultset.ColumnMetaData)
  GOOGLE_DCHECK_NE(&from, _this);
  uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  cached_has_bits = from._impl_._has_bits_[0];
  if (cached_has_bits & 0x000000ffu) {
    if (cached_has_bits & 0x00000001u) {
      _this->_internal_set_name(from._internal_name());
    }
    if (cached_has_bits & 0x00000002u) {
      _this->_internal_set_original_name(from._internal_original_name());
    }
    if (cached_has_bits & 0x00000004u) {
      _this->_internal_set_table(from._internal_table());
    }
    if (cached_has_bits & 0x00000008u) {
      _this->_internal_set_original_table(from._internal_original_table());
    }
    if (cached_has_bits & 0x00000010u) {
      _this->_internal_set_schema(from._internal_schema());
    }
    if (cached_has_bits & 0x00000020u) {
      _this->_internal_set_catalog(from._internal_catalog());
    }
    if (cached_has_bits & 0x00000040u) {
      _this->_impl_.collation_ = from._impl_.collation_;
    }
    if (cached_has_bits & 0x00000080u) {
      _this->_impl_.fractional_digits_ = from._impl_.fractional_digits_;
    }
    _this->_impl_._has_bits_[0] |= cached_has_bits;
  }
  if (cached_has_bits & 0x00000f00u) {
    if (cached_has_bits & 0x00000100u) {
      _this->_impl_.length_ = from._impl_.length_;
    }
    if (cached_has_bits & 0x00000200u) {
      _this->_impl_.flags_ = from._impl_.flags_;
    }
    if (cached_has_bits & 0x00000400u) {
      _this->_impl_.content_type_ = from._impl_.content_type_;
    }
    if (cached_has_bits & 0x00000800u) {
      _this->_impl_.type_ = from._impl_.type_;
    }
    _this->_impl_._has_bits_[0] |= cached_has_bits;
  }
  _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}

void ColumnMetaData::CopyFrom(const ColumnMetaData& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:Mysqlx.Resultset.ColumnMetaData)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

bool ColumnMetaData::IsInitialized() const {
  if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false;
  return true;
}

void ColumnMetaData::InternalSwap(ColumnMetaData* other) {
  using std::swap;
  auto* lhs_arena = GetArenaForAllocation();
  auto* rhs_arena = other->GetArenaForAllocation();
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
      &_impl_.name_, lhs_arena,
      &other->_impl_.name_, rhs_arena
  );
  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
      &_impl_.original_name_, lhs_arena,
      &other->_impl_.original_name_, rhs_arena
  );
  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
      &_impl_.table_, lhs_arena,
      &other->_impl_.table_, rhs_arena
  );
  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
      &_impl_.original_table_, lhs_arena,
      &other->_impl_.original_table_, rhs_arena
  );
  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
      &_impl_.schema_, lhs_arena,
      &other->_impl_.schema_, rhs_arena
  );
  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
      &_impl_.catalog_, lhs_arena,
      &other->_impl_.catalog_, rhs_arena
  );
  ::PROTOBUF_NAMESPACE_ID::internal::memswap<
      PROTOBUF_FIELD_OFFSET(ColumnMetaData, _impl_.content_type_)
      + sizeof(ColumnMetaData::_impl_.content_type_)
      - PROTOBUF_FIELD_OFFSET(ColumnMetaData, _impl_.collation_)>(
          reinterpret_cast<char*>(&_impl_.collation_),
          reinterpret_cast<char*>(&other->_impl_.collation_));
  swap(_impl_.type_, other->_impl_.type_);
}

::PROTOBUF_NAMESPACE_ID::Metadata ColumnMetaData::GetMetadata() const {
  return ::_pbi::AssignDescriptors(
      &descriptor_table_mysqlx_5fresultset_2eproto_getter, &descriptor_table_mysqlx_5fresultset_2eproto_once,
      file_level_metadata_mysqlx_5fresultset_2eproto[4]);
}

// ===================================================================

class Row::_Internal {
 public:
};

Row::Row(::PROTOBUF_NAMESPACE_ID::Arena* arena,
                         bool is_message_owned)
  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  SharedCtor(arena, is_message_owned);
  // @@protoc_insertion_point(arena_constructor:Mysqlx.Resultset.Row)
}
Row::Row(const Row& from)
  : ::PROTOBUF_NAMESPACE_ID::Message() {
  Row* const _this = this; (void)_this;
  new (&_impl_) Impl_{
      decltype(_impl_.field_){from._impl_.field_}
    , /*decltype(_impl_._cached_size_)*/{}};

  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  // @@protoc_insertion_point(copy_constructor:Mysqlx.Resultset.Row)
}

inline void Row::SharedCtor(
    ::_pb::Arena* arena, bool is_message_owned) {
  (void)arena;
  (void)is_message_owned;
  new (&_impl_) Impl_{
      decltype(_impl_.field_){arena}
    , /*decltype(_impl_._cached_size_)*/{}
  };
}

Row::~Row() {
  // @@protoc_insertion_point(destructor:Mysqlx.Resultset.Row)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void Row::SharedDtor() {
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  _impl_.field_.~RepeatedPtrField();
}

void Row::SetCachedSize(int size) const {
  _impl_._cached_size_.Set(size);
}

void Row::Clear() {
// @@protoc_insertion_point(message_clear_start:Mysqlx.Resultset.Row)
  uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  _impl_.field_.Clear();
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}

const char* Row::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  while (!ctx->Done(&ptr)) {
    uint32_t tag;
    ptr = ::_pbi::ReadTag(ptr, &tag);
    switch (tag >> 3) {
      // repeated bytes field = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
          ptr -= 1;
          do {
            ptr += 1;
            auto str = _internal_add_field();
            ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
            CHK_(ptr);
            if (!ctx->DataAvailable(ptr)) break;
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(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;
    }
    ptr = UnknownFieldParse(
        tag,
        _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

uint8_t* Row::_InternalSerialize(
    uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:Mysqlx.Resultset.Row)
  uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // repeated bytes field = 1;
  for (int i = 0, n = this->_internal_field_size(); i < n; i++) {
    const auto& s = this->_internal_field(i);
    target = stream->WriteBytes(1, s, target);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = ::_pbi::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:Mysqlx.Resultset.Row)
  return target;
}

size_t Row::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:Mysqlx.Resultset.Row)
  size_t total_size = 0;

  uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  // repeated bytes field = 1;
  total_size += 1 *
      ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.field_.size());
  for (int i = 0, n = _impl_.field_.size(); i < n; i++) {
    total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
      _impl_.field_.Get(i));
  }

  return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}

const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Row::_class_data_ = {
    ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
    Row::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Row::GetClassData() const { return &_class_data_; }


void Row::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
  auto* const _this = static_cast<Row*>(&to_msg);
  auto& from = static_cast<const Row&>(from_msg);
  // @@protoc_insertion_point(class_specific_merge_from_start:Mysqlx.Resultset.Row)
  GOOGLE_DCHECK_NE(&from, _this);
  uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  _this->_impl_.field_.MergeFrom(from._impl_.field_);
  _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}

void Row::CopyFrom(const Row& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:Mysqlx.Resultset.Row)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

bool Row::IsInitialized() const {
  return true;
}

void Row::InternalSwap(Row* other) {
  using std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  _impl_.field_.InternalSwap(&other->_impl_.field_);
}

::PROTOBUF_NAMESPACE_ID::Metadata Row::GetMetadata() const {
  return ::_pbi::AssignDescriptors(
      &descriptor_table_mysqlx_5fresultset_2eproto_getter, &descriptor_table_mysqlx_5fresultset_2eproto_once,
      file_level_metadata_mysqlx_5fresultset_2eproto[5]);
}

// @@protoc_insertion_point(namespace_scope)
}  // namespace Resultset
}  // namespace Mysqlx
PROTOBUF_NAMESPACE_OPEN
template<> PROTOBUF_NOINLINE ::Mysqlx::Resultset::FetchDoneMoreOutParams*
Arena::CreateMaybeMessage< ::Mysqlx::Resultset::FetchDoneMoreOutParams >(Arena* arena) {
  return Arena::CreateMessageInternal< ::Mysqlx::Resultset::FetchDoneMoreOutParams >(arena);
}
template<> PROTOBUF_NOINLINE ::Mysqlx::Resultset::FetchDoneMoreResultsets*
Arena::CreateMaybeMessage< ::Mysqlx::Resultset::FetchDoneMoreResultsets >(Arena* arena) {
  return Arena::CreateMessageInternal< ::Mysqlx::Resultset::FetchDoneMoreResultsets >(arena);
}
template<> PROTOBUF_NOINLINE ::Mysqlx::Resultset::FetchDone*
Arena::CreateMaybeMessage< ::Mysqlx::Resultset::FetchDone >(Arena* arena) {
  return Arena::CreateMessageInternal< ::Mysqlx::Resultset::FetchDone >(arena);
}
template<> PROTOBUF_NOINLINE ::Mysqlx::Resultset::FetchSuspended*
Arena::CreateMaybeMessage< ::Mysqlx::Resultset::FetchSuspended >(Arena* arena) {
  return Arena::CreateMessageInternal< ::Mysqlx::Resultset::FetchSuspended >(arena);
}
template<> PROTOBUF_NOINLINE ::Mysqlx::Resultset::ColumnMetaData*
Arena::CreateMaybeMessage< ::Mysqlx::Resultset::ColumnMetaData >(Arena* arena) {
  return Arena::CreateMessageInternal< ::Mysqlx::Resultset::ColumnMetaData >(arena);
}
template<> PROTOBUF_NOINLINE ::Mysqlx::Resultset::Row*
Arena::CreateMaybeMessage< ::Mysqlx::Resultset::Row >(Arena* arena) {
  return Arena::CreateMessageInternal< ::Mysqlx::Resultset::Row >(arena);
}
PROTOBUF_NAMESPACE_CLOSE

// @@protoc_insertion_point(global_scope)
#include <google/protobuf/port_undef.inc>
