mirror of https://github.com/sysown/proxysql
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1209 lines
44 KiB
1209 lines
44 KiB
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: mysqlx_session.proto
|
|
|
|
#include "mysqlx_session.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 Session {
|
|
PROTOBUF_CONSTEXPR AuthenticateStart::AuthenticateStart(
|
|
::_pbi::ConstantInitialized): _impl_{
|
|
/*decltype(_impl_._has_bits_)*/{}
|
|
, /*decltype(_impl_._cached_size_)*/{}
|
|
, /*decltype(_impl_.mech_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
|
, /*decltype(_impl_.auth_data_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
|
, /*decltype(_impl_.initial_response_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}} {}
|
|
struct AuthenticateStartDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR AuthenticateStartDefaultTypeInternal()
|
|
: _instance(::_pbi::ConstantInitialized{}) {}
|
|
~AuthenticateStartDefaultTypeInternal() {}
|
|
union {
|
|
AuthenticateStart _instance;
|
|
};
|
|
};
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AuthenticateStartDefaultTypeInternal _AuthenticateStart_default_instance_;
|
|
PROTOBUF_CONSTEXPR AuthenticateContinue::AuthenticateContinue(
|
|
::_pbi::ConstantInitialized): _impl_{
|
|
/*decltype(_impl_._has_bits_)*/{}
|
|
, /*decltype(_impl_._cached_size_)*/{}
|
|
, /*decltype(_impl_.auth_data_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}} {}
|
|
struct AuthenticateContinueDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR AuthenticateContinueDefaultTypeInternal()
|
|
: _instance(::_pbi::ConstantInitialized{}) {}
|
|
~AuthenticateContinueDefaultTypeInternal() {}
|
|
union {
|
|
AuthenticateContinue _instance;
|
|
};
|
|
};
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AuthenticateContinueDefaultTypeInternal _AuthenticateContinue_default_instance_;
|
|
PROTOBUF_CONSTEXPR AuthenticateOk::AuthenticateOk(
|
|
::_pbi::ConstantInitialized): _impl_{
|
|
/*decltype(_impl_._has_bits_)*/{}
|
|
, /*decltype(_impl_._cached_size_)*/{}
|
|
, /*decltype(_impl_.auth_data_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}} {}
|
|
struct AuthenticateOkDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR AuthenticateOkDefaultTypeInternal()
|
|
: _instance(::_pbi::ConstantInitialized{}) {}
|
|
~AuthenticateOkDefaultTypeInternal() {}
|
|
union {
|
|
AuthenticateOk _instance;
|
|
};
|
|
};
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AuthenticateOkDefaultTypeInternal _AuthenticateOk_default_instance_;
|
|
PROTOBUF_CONSTEXPR Reset::Reset(
|
|
::_pbi::ConstantInitialized): _impl_{
|
|
/*decltype(_impl_._has_bits_)*/{}
|
|
, /*decltype(_impl_._cached_size_)*/{}
|
|
, /*decltype(_impl_.keep_open_)*/false} {}
|
|
struct ResetDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR ResetDefaultTypeInternal()
|
|
: _instance(::_pbi::ConstantInitialized{}) {}
|
|
~ResetDefaultTypeInternal() {}
|
|
union {
|
|
Reset _instance;
|
|
};
|
|
};
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ResetDefaultTypeInternal _Reset_default_instance_;
|
|
PROTOBUF_CONSTEXPR Close::Close(
|
|
::_pbi::ConstantInitialized) {}
|
|
struct CloseDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR CloseDefaultTypeInternal()
|
|
: _instance(::_pbi::ConstantInitialized{}) {}
|
|
~CloseDefaultTypeInternal() {}
|
|
union {
|
|
Close _instance;
|
|
};
|
|
};
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CloseDefaultTypeInternal _Close_default_instance_;
|
|
} // namespace Session
|
|
} // namespace Mysqlx
|
|
static ::_pb::Metadata file_level_metadata_mysqlx_5fsession_2eproto[5];
|
|
static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_mysqlx_5fsession_2eproto = nullptr;
|
|
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_mysqlx_5fsession_2eproto = nullptr;
|
|
|
|
const uint32_t TableStruct_mysqlx_5fsession_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
|
PROTOBUF_FIELD_OFFSET(::Mysqlx::Session::AuthenticateStart, _impl_._has_bits_),
|
|
PROTOBUF_FIELD_OFFSET(::Mysqlx::Session::AuthenticateStart, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
~0u, // no _inlined_string_donated_
|
|
PROTOBUF_FIELD_OFFSET(::Mysqlx::Session::AuthenticateStart, _impl_.mech_name_),
|
|
PROTOBUF_FIELD_OFFSET(::Mysqlx::Session::AuthenticateStart, _impl_.auth_data_),
|
|
PROTOBUF_FIELD_OFFSET(::Mysqlx::Session::AuthenticateStart, _impl_.initial_response_),
|
|
0,
|
|
1,
|
|
2,
|
|
PROTOBUF_FIELD_OFFSET(::Mysqlx::Session::AuthenticateContinue, _impl_._has_bits_),
|
|
PROTOBUF_FIELD_OFFSET(::Mysqlx::Session::AuthenticateContinue, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
~0u, // no _inlined_string_donated_
|
|
PROTOBUF_FIELD_OFFSET(::Mysqlx::Session::AuthenticateContinue, _impl_.auth_data_),
|
|
0,
|
|
PROTOBUF_FIELD_OFFSET(::Mysqlx::Session::AuthenticateOk, _impl_._has_bits_),
|
|
PROTOBUF_FIELD_OFFSET(::Mysqlx::Session::AuthenticateOk, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
~0u, // no _inlined_string_donated_
|
|
PROTOBUF_FIELD_OFFSET(::Mysqlx::Session::AuthenticateOk, _impl_.auth_data_),
|
|
0,
|
|
PROTOBUF_FIELD_OFFSET(::Mysqlx::Session::Reset, _impl_._has_bits_),
|
|
PROTOBUF_FIELD_OFFSET(::Mysqlx::Session::Reset, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
~0u, // no _inlined_string_donated_
|
|
PROTOBUF_FIELD_OFFSET(::Mysqlx::Session::Reset, _impl_.keep_open_),
|
|
0,
|
|
~0u, // no _has_bits_
|
|
PROTOBUF_FIELD_OFFSET(::Mysqlx::Session::Close, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
~0u, // no _inlined_string_donated_
|
|
};
|
|
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
|
{ 0, 9, -1, sizeof(::Mysqlx::Session::AuthenticateStart)},
|
|
{ 12, 19, -1, sizeof(::Mysqlx::Session::AuthenticateContinue)},
|
|
{ 20, 27, -1, sizeof(::Mysqlx::Session::AuthenticateOk)},
|
|
{ 28, 35, -1, sizeof(::Mysqlx::Session::Reset)},
|
|
{ 36, -1, -1, sizeof(::Mysqlx::Session::Close)},
|
|
};
|
|
|
|
static const ::_pb::Message* const file_default_instances[] = {
|
|
&::Mysqlx::Session::_AuthenticateStart_default_instance_._instance,
|
|
&::Mysqlx::Session::_AuthenticateContinue_default_instance_._instance,
|
|
&::Mysqlx::Session::_AuthenticateOk_default_instance_._instance,
|
|
&::Mysqlx::Session::_Reset_default_instance_._instance,
|
|
&::Mysqlx::Session::_Close_default_instance_._instance,
|
|
};
|
|
|
|
const char descriptor_table_protodef_mysqlx_5fsession_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
|
|
"\n\024mysqlx_session.proto\022\016Mysqlx.Session\032\014"
|
|
"mysqlx.proto\"Y\n\021AuthenticateStart\022\021\n\tmec"
|
|
"h_name\030\001 \002(\t\022\021\n\tauth_data\030\002 \001(\014\022\030\n\020initi"
|
|
"al_response\030\003 \001(\014:\004\210\3520\004\"3\n\024AuthenticateC"
|
|
"ontinue\022\021\n\tauth_data\030\001 \002(\014:\010\220\3520\003\210\3520\005\")\n\016"
|
|
"AuthenticateOk\022\021\n\tauth_data\030\001 \001(\014:\004\220\3520\004\""
|
|
"\'\n\005Reset\022\030\n\tkeep_open\030\001 \001(\010:\005false:\004\210\3520\006"
|
|
"\"\r\n\005Close:\004\210\3520\007B\031\n\027com.mysql.cj.x.protob"
|
|
"uf"
|
|
;
|
|
static const ::_pbi::DescriptorTable* const descriptor_table_mysqlx_5fsession_2eproto_deps[1] = {
|
|
&::descriptor_table_mysqlx_2eproto,
|
|
};
|
|
static ::_pbi::once_flag descriptor_table_mysqlx_5fsession_2eproto_once;
|
|
const ::_pbi::DescriptorTable descriptor_table_mysqlx_5fsession_2eproto = {
|
|
false, false, 322, descriptor_table_protodef_mysqlx_5fsession_2eproto,
|
|
"mysqlx_session.proto",
|
|
&descriptor_table_mysqlx_5fsession_2eproto_once, descriptor_table_mysqlx_5fsession_2eproto_deps, 1, 5,
|
|
schemas, file_default_instances, TableStruct_mysqlx_5fsession_2eproto::offsets,
|
|
file_level_metadata_mysqlx_5fsession_2eproto, file_level_enum_descriptors_mysqlx_5fsession_2eproto,
|
|
file_level_service_descriptors_mysqlx_5fsession_2eproto,
|
|
};
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_mysqlx_5fsession_2eproto_getter() {
|
|
return &descriptor_table_mysqlx_5fsession_2eproto;
|
|
}
|
|
|
|
// Force running AddDescriptors() at dynamic initialization time.
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_mysqlx_5fsession_2eproto(&descriptor_table_mysqlx_5fsession_2eproto);
|
|
namespace Mysqlx {
|
|
namespace Session {
|
|
|
|
// ===================================================================
|
|
|
|
class AuthenticateStart::_Internal {
|
|
public:
|
|
using HasBits = decltype(std::declval<AuthenticateStart>()._impl_._has_bits_);
|
|
static void set_has_mech_name(HasBits* has_bits) {
|
|
(*has_bits)[0] |= 1u;
|
|
}
|
|
static void set_has_auth_data(HasBits* has_bits) {
|
|
(*has_bits)[0] |= 2u;
|
|
}
|
|
static void set_has_initial_response(HasBits* has_bits) {
|
|
(*has_bits)[0] |= 4u;
|
|
}
|
|
static bool MissingRequiredFields(const HasBits& has_bits) {
|
|
return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0;
|
|
}
|
|
};
|
|
|
|
AuthenticateStart::AuthenticateStart(::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.Session.AuthenticateStart)
|
|
}
|
|
AuthenticateStart::AuthenticateStart(const AuthenticateStart& from)
|
|
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
|
AuthenticateStart* const _this = this; (void)_this;
|
|
new (&_impl_) Impl_{
|
|
decltype(_impl_._has_bits_){from._impl_._has_bits_}
|
|
, /*decltype(_impl_._cached_size_)*/{}
|
|
, decltype(_impl_.mech_name_){}
|
|
, decltype(_impl_.auth_data_){}
|
|
, decltype(_impl_.initial_response_){}};
|
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
_impl_.mech_name_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.mech_name_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
if (from._internal_has_mech_name()) {
|
|
_this->_impl_.mech_name_.Set(from._internal_mech_name(),
|
|
_this->GetArenaForAllocation());
|
|
}
|
|
_impl_.auth_data_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.auth_data_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
if (from._internal_has_auth_data()) {
|
|
_this->_impl_.auth_data_.Set(from._internal_auth_data(),
|
|
_this->GetArenaForAllocation());
|
|
}
|
|
_impl_.initial_response_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.initial_response_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
if (from._internal_has_initial_response()) {
|
|
_this->_impl_.initial_response_.Set(from._internal_initial_response(),
|
|
_this->GetArenaForAllocation());
|
|
}
|
|
// @@protoc_insertion_point(copy_constructor:Mysqlx.Session.AuthenticateStart)
|
|
}
|
|
|
|
inline void AuthenticateStart::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_.mech_name_){}
|
|
, decltype(_impl_.auth_data_){}
|
|
, decltype(_impl_.initial_response_){}
|
|
};
|
|
_impl_.mech_name_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.mech_name_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.auth_data_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.auth_data_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.initial_response_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.initial_response_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
}
|
|
|
|
AuthenticateStart::~AuthenticateStart() {
|
|
// @@protoc_insertion_point(destructor:Mysqlx.Session.AuthenticateStart)
|
|
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
|
|
(void)arena;
|
|
return;
|
|
}
|
|
SharedDtor();
|
|
}
|
|
|
|
inline void AuthenticateStart::SharedDtor() {
|
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
|
_impl_.mech_name_.Destroy();
|
|
_impl_.auth_data_.Destroy();
|
|
_impl_.initial_response_.Destroy();
|
|
}
|
|
|
|
void AuthenticateStart::SetCachedSize(int size) const {
|
|
_impl_._cached_size_.Set(size);
|
|
}
|
|
|
|
void AuthenticateStart::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:Mysqlx.Session.AuthenticateStart)
|
|
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 & 0x00000007u) {
|
|
if (cached_has_bits & 0x00000001u) {
|
|
_impl_.mech_name_.ClearNonDefaultToEmpty();
|
|
}
|
|
if (cached_has_bits & 0x00000002u) {
|
|
_impl_.auth_data_.ClearNonDefaultToEmpty();
|
|
}
|
|
if (cached_has_bits & 0x00000004u) {
|
|
_impl_.initial_response_.ClearNonDefaultToEmpty();
|
|
}
|
|
}
|
|
_impl_._has_bits_.Clear();
|
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
|
}
|
|
|
|
const char* AuthenticateStart::_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 string mech_name = 1;
|
|
case 1:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
|
|
auto str = _internal_mutable_mech_name();
|
|
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
|
|
CHK_(ptr);
|
|
#ifndef NDEBUG
|
|
::_pbi::VerifyUTF8(str, "Mysqlx.Session.AuthenticateStart.mech_name");
|
|
#endif // !NDEBUG
|
|
} else
|
|
goto handle_unusual;
|
|
continue;
|
|
// optional bytes auth_data = 2;
|
|
case 2:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
|
|
auto str = _internal_mutable_auth_data();
|
|
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
|
|
CHK_(ptr);
|
|
} else
|
|
goto handle_unusual;
|
|
continue;
|
|
// optional bytes initial_response = 3;
|
|
case 3:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
|
|
auto str = _internal_mutable_initial_response();
|
|
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
|
|
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* AuthenticateStart::_InternalSerialize(
|
|
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:Mysqlx.Session.AuthenticateStart)
|
|
uint32_t cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
cached_has_bits = _impl_._has_bits_[0];
|
|
// required string mech_name = 1;
|
|
if (cached_has_bits & 0x00000001u) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->_internal_mech_name().data(), static_cast<int>(this->_internal_mech_name().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
|
|
"Mysqlx.Session.AuthenticateStart.mech_name");
|
|
target = stream->WriteStringMaybeAliased(
|
|
1, this->_internal_mech_name(), target);
|
|
}
|
|
|
|
// optional bytes auth_data = 2;
|
|
if (cached_has_bits & 0x00000002u) {
|
|
target = stream->WriteBytesMaybeAliased(
|
|
2, this->_internal_auth_data(), target);
|
|
}
|
|
|
|
// optional bytes initial_response = 3;
|
|
if (cached_has_bits & 0x00000004u) {
|
|
target = stream->WriteBytesMaybeAliased(
|
|
3, this->_internal_initial_response(), 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.Session.AuthenticateStart)
|
|
return target;
|
|
}
|
|
|
|
size_t AuthenticateStart::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:Mysqlx.Session.AuthenticateStart)
|
|
size_t total_size = 0;
|
|
|
|
// required string mech_name = 1;
|
|
if (_internal_has_mech_name()) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->_internal_mech_name());
|
|
}
|
|
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 & 0x00000006u) {
|
|
// optional bytes auth_data = 2;
|
|
if (cached_has_bits & 0x00000002u) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
|
|
this->_internal_auth_data());
|
|
}
|
|
|
|
// optional bytes initial_response = 3;
|
|
if (cached_has_bits & 0x00000004u) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
|
|
this->_internal_initial_response());
|
|
}
|
|
|
|
}
|
|
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
|
}
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AuthenticateStart::_class_data_ = {
|
|
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
|
|
AuthenticateStart::MergeImpl
|
|
};
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AuthenticateStart::GetClassData() const { return &_class_data_; }
|
|
|
|
|
|
void AuthenticateStart::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
|
|
auto* const _this = static_cast<AuthenticateStart*>(&to_msg);
|
|
auto& from = static_cast<const AuthenticateStart&>(from_msg);
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:Mysqlx.Session.AuthenticateStart)
|
|
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 & 0x00000007u) {
|
|
if (cached_has_bits & 0x00000001u) {
|
|
_this->_internal_set_mech_name(from._internal_mech_name());
|
|
}
|
|
if (cached_has_bits & 0x00000002u) {
|
|
_this->_internal_set_auth_data(from._internal_auth_data());
|
|
}
|
|
if (cached_has_bits & 0x00000004u) {
|
|
_this->_internal_set_initial_response(from._internal_initial_response());
|
|
}
|
|
}
|
|
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
}
|
|
|
|
void AuthenticateStart::CopyFrom(const AuthenticateStart& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:Mysqlx.Session.AuthenticateStart)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool AuthenticateStart::IsInitialized() const {
|
|
if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false;
|
|
return true;
|
|
}
|
|
|
|
void AuthenticateStart::InternalSwap(AuthenticateStart* 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_.mech_name_, lhs_arena,
|
|
&other->_impl_.mech_name_, rhs_arena
|
|
);
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
|
&_impl_.auth_data_, lhs_arena,
|
|
&other->_impl_.auth_data_, rhs_arena
|
|
);
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
|
&_impl_.initial_response_, lhs_arena,
|
|
&other->_impl_.initial_response_, rhs_arena
|
|
);
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata AuthenticateStart::GetMetadata() const {
|
|
return ::_pbi::AssignDescriptors(
|
|
&descriptor_table_mysqlx_5fsession_2eproto_getter, &descriptor_table_mysqlx_5fsession_2eproto_once,
|
|
file_level_metadata_mysqlx_5fsession_2eproto[0]);
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
class AuthenticateContinue::_Internal {
|
|
public:
|
|
using HasBits = decltype(std::declval<AuthenticateContinue>()._impl_._has_bits_);
|
|
static void set_has_auth_data(HasBits* has_bits) {
|
|
(*has_bits)[0] |= 1u;
|
|
}
|
|
static bool MissingRequiredFields(const HasBits& has_bits) {
|
|
return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0;
|
|
}
|
|
};
|
|
|
|
AuthenticateContinue::AuthenticateContinue(::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.Session.AuthenticateContinue)
|
|
}
|
|
AuthenticateContinue::AuthenticateContinue(const AuthenticateContinue& from)
|
|
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
|
AuthenticateContinue* const _this = this; (void)_this;
|
|
new (&_impl_) Impl_{
|
|
decltype(_impl_._has_bits_){from._impl_._has_bits_}
|
|
, /*decltype(_impl_._cached_size_)*/{}
|
|
, decltype(_impl_.auth_data_){}};
|
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
_impl_.auth_data_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.auth_data_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
if (from._internal_has_auth_data()) {
|
|
_this->_impl_.auth_data_.Set(from._internal_auth_data(),
|
|
_this->GetArenaForAllocation());
|
|
}
|
|
// @@protoc_insertion_point(copy_constructor:Mysqlx.Session.AuthenticateContinue)
|
|
}
|
|
|
|
inline void AuthenticateContinue::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_.auth_data_){}
|
|
};
|
|
_impl_.auth_data_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.auth_data_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
}
|
|
|
|
AuthenticateContinue::~AuthenticateContinue() {
|
|
// @@protoc_insertion_point(destructor:Mysqlx.Session.AuthenticateContinue)
|
|
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
|
|
(void)arena;
|
|
return;
|
|
}
|
|
SharedDtor();
|
|
}
|
|
|
|
inline void AuthenticateContinue::SharedDtor() {
|
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
|
_impl_.auth_data_.Destroy();
|
|
}
|
|
|
|
void AuthenticateContinue::SetCachedSize(int size) const {
|
|
_impl_._cached_size_.Set(size);
|
|
}
|
|
|
|
void AuthenticateContinue::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:Mysqlx.Session.AuthenticateContinue)
|
|
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 & 0x00000001u) {
|
|
_impl_.auth_data_.ClearNonDefaultToEmpty();
|
|
}
|
|
_impl_._has_bits_.Clear();
|
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
|
}
|
|
|
|
const char* AuthenticateContinue::_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 bytes auth_data = 1;
|
|
case 1:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
|
|
auto str = _internal_mutable_auth_data();
|
|
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
|
|
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* AuthenticateContinue::_InternalSerialize(
|
|
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:Mysqlx.Session.AuthenticateContinue)
|
|
uint32_t cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
cached_has_bits = _impl_._has_bits_[0];
|
|
// required bytes auth_data = 1;
|
|
if (cached_has_bits & 0x00000001u) {
|
|
target = stream->WriteBytesMaybeAliased(
|
|
1, this->_internal_auth_data(), 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.Session.AuthenticateContinue)
|
|
return target;
|
|
}
|
|
|
|
size_t AuthenticateContinue::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:Mysqlx.Session.AuthenticateContinue)
|
|
size_t total_size = 0;
|
|
|
|
// required bytes auth_data = 1;
|
|
if (_internal_has_auth_data()) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
|
|
this->_internal_auth_data());
|
|
}
|
|
uint32_t cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
|
}
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AuthenticateContinue::_class_data_ = {
|
|
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
|
|
AuthenticateContinue::MergeImpl
|
|
};
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AuthenticateContinue::GetClassData() const { return &_class_data_; }
|
|
|
|
|
|
void AuthenticateContinue::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
|
|
auto* const _this = static_cast<AuthenticateContinue*>(&to_msg);
|
|
auto& from = static_cast<const AuthenticateContinue&>(from_msg);
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:Mysqlx.Session.AuthenticateContinue)
|
|
GOOGLE_DCHECK_NE(&from, _this);
|
|
uint32_t cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
if (from._internal_has_auth_data()) {
|
|
_this->_internal_set_auth_data(from._internal_auth_data());
|
|
}
|
|
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
}
|
|
|
|
void AuthenticateContinue::CopyFrom(const AuthenticateContinue& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:Mysqlx.Session.AuthenticateContinue)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool AuthenticateContinue::IsInitialized() const {
|
|
if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false;
|
|
return true;
|
|
}
|
|
|
|
void AuthenticateContinue::InternalSwap(AuthenticateContinue* 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_.auth_data_, lhs_arena,
|
|
&other->_impl_.auth_data_, rhs_arena
|
|
);
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata AuthenticateContinue::GetMetadata() const {
|
|
return ::_pbi::AssignDescriptors(
|
|
&descriptor_table_mysqlx_5fsession_2eproto_getter, &descriptor_table_mysqlx_5fsession_2eproto_once,
|
|
file_level_metadata_mysqlx_5fsession_2eproto[1]);
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
class AuthenticateOk::_Internal {
|
|
public:
|
|
using HasBits = decltype(std::declval<AuthenticateOk>()._impl_._has_bits_);
|
|
static void set_has_auth_data(HasBits* has_bits) {
|
|
(*has_bits)[0] |= 1u;
|
|
}
|
|
};
|
|
|
|
AuthenticateOk::AuthenticateOk(::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.Session.AuthenticateOk)
|
|
}
|
|
AuthenticateOk::AuthenticateOk(const AuthenticateOk& from)
|
|
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
|
AuthenticateOk* const _this = this; (void)_this;
|
|
new (&_impl_) Impl_{
|
|
decltype(_impl_._has_bits_){from._impl_._has_bits_}
|
|
, /*decltype(_impl_._cached_size_)*/{}
|
|
, decltype(_impl_.auth_data_){}};
|
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
_impl_.auth_data_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.auth_data_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
if (from._internal_has_auth_data()) {
|
|
_this->_impl_.auth_data_.Set(from._internal_auth_data(),
|
|
_this->GetArenaForAllocation());
|
|
}
|
|
// @@protoc_insertion_point(copy_constructor:Mysqlx.Session.AuthenticateOk)
|
|
}
|
|
|
|
inline void AuthenticateOk::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_.auth_data_){}
|
|
};
|
|
_impl_.auth_data_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.auth_data_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
}
|
|
|
|
AuthenticateOk::~AuthenticateOk() {
|
|
// @@protoc_insertion_point(destructor:Mysqlx.Session.AuthenticateOk)
|
|
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
|
|
(void)arena;
|
|
return;
|
|
}
|
|
SharedDtor();
|
|
}
|
|
|
|
inline void AuthenticateOk::SharedDtor() {
|
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
|
_impl_.auth_data_.Destroy();
|
|
}
|
|
|
|
void AuthenticateOk::SetCachedSize(int size) const {
|
|
_impl_._cached_size_.Set(size);
|
|
}
|
|
|
|
void AuthenticateOk::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:Mysqlx.Session.AuthenticateOk)
|
|
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 & 0x00000001u) {
|
|
_impl_.auth_data_.ClearNonDefaultToEmpty();
|
|
}
|
|
_impl_._has_bits_.Clear();
|
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
|
}
|
|
|
|
const char* AuthenticateOk::_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) {
|
|
// optional bytes auth_data = 1;
|
|
case 1:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
|
|
auto str = _internal_mutable_auth_data();
|
|
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
|
|
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* AuthenticateOk::_InternalSerialize(
|
|
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:Mysqlx.Session.AuthenticateOk)
|
|
uint32_t cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
cached_has_bits = _impl_._has_bits_[0];
|
|
// optional bytes auth_data = 1;
|
|
if (cached_has_bits & 0x00000001u) {
|
|
target = stream->WriteBytesMaybeAliased(
|
|
1, this->_internal_auth_data(), 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.Session.AuthenticateOk)
|
|
return target;
|
|
}
|
|
|
|
size_t AuthenticateOk::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:Mysqlx.Session.AuthenticateOk)
|
|
size_t total_size = 0;
|
|
|
|
uint32_t cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
// optional bytes auth_data = 1;
|
|
cached_has_bits = _impl_._has_bits_[0];
|
|
if (cached_has_bits & 0x00000001u) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
|
|
this->_internal_auth_data());
|
|
}
|
|
|
|
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
|
}
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AuthenticateOk::_class_data_ = {
|
|
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
|
|
AuthenticateOk::MergeImpl
|
|
};
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AuthenticateOk::GetClassData() const { return &_class_data_; }
|
|
|
|
|
|
void AuthenticateOk::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
|
|
auto* const _this = static_cast<AuthenticateOk*>(&to_msg);
|
|
auto& from = static_cast<const AuthenticateOk&>(from_msg);
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:Mysqlx.Session.AuthenticateOk)
|
|
GOOGLE_DCHECK_NE(&from, _this);
|
|
uint32_t cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
if (from._internal_has_auth_data()) {
|
|
_this->_internal_set_auth_data(from._internal_auth_data());
|
|
}
|
|
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
}
|
|
|
|
void AuthenticateOk::CopyFrom(const AuthenticateOk& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:Mysqlx.Session.AuthenticateOk)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool AuthenticateOk::IsInitialized() const {
|
|
return true;
|
|
}
|
|
|
|
void AuthenticateOk::InternalSwap(AuthenticateOk* 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_.auth_data_, lhs_arena,
|
|
&other->_impl_.auth_data_, rhs_arena
|
|
);
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata AuthenticateOk::GetMetadata() const {
|
|
return ::_pbi::AssignDescriptors(
|
|
&descriptor_table_mysqlx_5fsession_2eproto_getter, &descriptor_table_mysqlx_5fsession_2eproto_once,
|
|
file_level_metadata_mysqlx_5fsession_2eproto[2]);
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
class Reset::_Internal {
|
|
public:
|
|
using HasBits = decltype(std::declval<Reset>()._impl_._has_bits_);
|
|
static void set_has_keep_open(HasBits* has_bits) {
|
|
(*has_bits)[0] |= 1u;
|
|
}
|
|
};
|
|
|
|
Reset::Reset(::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.Session.Reset)
|
|
}
|
|
Reset::Reset(const Reset& from)
|
|
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
|
Reset* const _this = this; (void)_this;
|
|
new (&_impl_) Impl_{
|
|
decltype(_impl_._has_bits_){from._impl_._has_bits_}
|
|
, /*decltype(_impl_._cached_size_)*/{}
|
|
, decltype(_impl_.keep_open_){}};
|
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
_this->_impl_.keep_open_ = from._impl_.keep_open_;
|
|
// @@protoc_insertion_point(copy_constructor:Mysqlx.Session.Reset)
|
|
}
|
|
|
|
inline void Reset::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_.keep_open_){false}
|
|
};
|
|
}
|
|
|
|
Reset::~Reset() {
|
|
// @@protoc_insertion_point(destructor:Mysqlx.Session.Reset)
|
|
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
|
|
(void)arena;
|
|
return;
|
|
}
|
|
SharedDtor();
|
|
}
|
|
|
|
inline void Reset::SharedDtor() {
|
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
|
}
|
|
|
|
void Reset::SetCachedSize(int size) const {
|
|
_impl_._cached_size_.Set(size);
|
|
}
|
|
|
|
void Reset::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:Mysqlx.Session.Reset)
|
|
uint32_t cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
_impl_.keep_open_ = false;
|
|
_impl_._has_bits_.Clear();
|
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
|
}
|
|
|
|
const char* Reset::_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) {
|
|
// optional bool keep_open = 1 [default = false];
|
|
case 1:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
|
|
_Internal::set_has_keep_open(&has_bits);
|
|
_impl_.keep_open_ = ::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;
|
|
}
|
|
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* Reset::_InternalSerialize(
|
|
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:Mysqlx.Session.Reset)
|
|
uint32_t cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
cached_has_bits = _impl_._has_bits_[0];
|
|
// optional bool keep_open = 1 [default = false];
|
|
if (cached_has_bits & 0x00000001u) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_keep_open(), 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.Session.Reset)
|
|
return target;
|
|
}
|
|
|
|
size_t Reset::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:Mysqlx.Session.Reset)
|
|
size_t total_size = 0;
|
|
|
|
uint32_t cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
// optional bool keep_open = 1 [default = false];
|
|
cached_has_bits = _impl_._has_bits_[0];
|
|
if (cached_has_bits & 0x00000001u) {
|
|
total_size += 1 + 1;
|
|
}
|
|
|
|
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
|
}
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Reset::_class_data_ = {
|
|
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
|
|
Reset::MergeImpl
|
|
};
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Reset::GetClassData() const { return &_class_data_; }
|
|
|
|
|
|
void Reset::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
|
|
auto* const _this = static_cast<Reset*>(&to_msg);
|
|
auto& from = static_cast<const Reset&>(from_msg);
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:Mysqlx.Session.Reset)
|
|
GOOGLE_DCHECK_NE(&from, _this);
|
|
uint32_t cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
if (from._internal_has_keep_open()) {
|
|
_this->_internal_set_keep_open(from._internal_keep_open());
|
|
}
|
|
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
}
|
|
|
|
void Reset::CopyFrom(const Reset& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:Mysqlx.Session.Reset)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool Reset::IsInitialized() const {
|
|
return true;
|
|
}
|
|
|
|
void Reset::InternalSwap(Reset* other) {
|
|
using std::swap;
|
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
|
swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
|
|
swap(_impl_.keep_open_, other->_impl_.keep_open_);
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata Reset::GetMetadata() const {
|
|
return ::_pbi::AssignDescriptors(
|
|
&descriptor_table_mysqlx_5fsession_2eproto_getter, &descriptor_table_mysqlx_5fsession_2eproto_once,
|
|
file_level_metadata_mysqlx_5fsession_2eproto[3]);
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
class Close::_Internal {
|
|
public:
|
|
};
|
|
|
|
Close::Close(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
|
bool is_message_owned)
|
|
: ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
|
|
// @@protoc_insertion_point(arena_constructor:Mysqlx.Session.Close)
|
|
}
|
|
Close::Close(const Close& from)
|
|
: ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
|
|
Close* const _this = this; (void)_this;
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
// @@protoc_insertion_point(copy_constructor:Mysqlx.Session.Close)
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Close::_class_data_ = {
|
|
::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
|
|
::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
|
|
};
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Close::GetClassData() const { return &_class_data_; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata Close::GetMetadata() const {
|
|
return ::_pbi::AssignDescriptors(
|
|
&descriptor_table_mysqlx_5fsession_2eproto_getter, &descriptor_table_mysqlx_5fsession_2eproto_once,
|
|
file_level_metadata_mysqlx_5fsession_2eproto[4]);
|
|
}
|
|
|
|
// @@protoc_insertion_point(namespace_scope)
|
|
} // namespace Session
|
|
} // namespace Mysqlx
|
|
PROTOBUF_NAMESPACE_OPEN
|
|
template<> PROTOBUF_NOINLINE ::Mysqlx::Session::AuthenticateStart*
|
|
Arena::CreateMaybeMessage< ::Mysqlx::Session::AuthenticateStart >(Arena* arena) {
|
|
return Arena::CreateMessageInternal< ::Mysqlx::Session::AuthenticateStart >(arena);
|
|
}
|
|
template<> PROTOBUF_NOINLINE ::Mysqlx::Session::AuthenticateContinue*
|
|
Arena::CreateMaybeMessage< ::Mysqlx::Session::AuthenticateContinue >(Arena* arena) {
|
|
return Arena::CreateMessageInternal< ::Mysqlx::Session::AuthenticateContinue >(arena);
|
|
}
|
|
template<> PROTOBUF_NOINLINE ::Mysqlx::Session::AuthenticateOk*
|
|
Arena::CreateMaybeMessage< ::Mysqlx::Session::AuthenticateOk >(Arena* arena) {
|
|
return Arena::CreateMessageInternal< ::Mysqlx::Session::AuthenticateOk >(arena);
|
|
}
|
|
template<> PROTOBUF_NOINLINE ::Mysqlx::Session::Reset*
|
|
Arena::CreateMaybeMessage< ::Mysqlx::Session::Reset >(Arena* arena) {
|
|
return Arena::CreateMessageInternal< ::Mysqlx::Session::Reset >(arena);
|
|
}
|
|
template<> PROTOBUF_NOINLINE ::Mysqlx::Session::Close*
|
|
Arena::CreateMaybeMessage< ::Mysqlx::Session::Close >(Arena* arena) {
|
|
return Arena::CreateMessageInternal< ::Mysqlx::Session::Close >(arena);
|
|
}
|
|
PROTOBUF_NAMESPACE_CLOSE
|
|
|
|
// @@protoc_insertion_point(global_scope)
|
|
#include <google/protobuf/port_undef.inc>
|