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.
1033 lines
38 KiB
1033 lines
38 KiB
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: mysqlx.proto
|
|
|
|
#include "mysqlx.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 {
|
|
PROTOBUF_CONSTEXPR ClientMessages::ClientMessages(
|
|
::_pbi::ConstantInitialized) {}
|
|
struct ClientMessagesDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR ClientMessagesDefaultTypeInternal()
|
|
: _instance(::_pbi::ConstantInitialized{}) {}
|
|
~ClientMessagesDefaultTypeInternal() {}
|
|
union {
|
|
ClientMessages _instance;
|
|
};
|
|
};
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ClientMessagesDefaultTypeInternal _ClientMessages_default_instance_;
|
|
PROTOBUF_CONSTEXPR ServerMessages::ServerMessages(
|
|
::_pbi::ConstantInitialized) {}
|
|
struct ServerMessagesDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR ServerMessagesDefaultTypeInternal()
|
|
: _instance(::_pbi::ConstantInitialized{}) {}
|
|
~ServerMessagesDefaultTypeInternal() {}
|
|
union {
|
|
ServerMessages _instance;
|
|
};
|
|
};
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ServerMessagesDefaultTypeInternal _ServerMessages_default_instance_;
|
|
PROTOBUF_CONSTEXPR Ok::Ok(
|
|
::_pbi::ConstantInitialized): _impl_{
|
|
/*decltype(_impl_._has_bits_)*/{}
|
|
, /*decltype(_impl_._cached_size_)*/{}
|
|
, /*decltype(_impl_.msg_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}} {}
|
|
struct OkDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR OkDefaultTypeInternal()
|
|
: _instance(::_pbi::ConstantInitialized{}) {}
|
|
~OkDefaultTypeInternal() {}
|
|
union {
|
|
Ok _instance;
|
|
};
|
|
};
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 OkDefaultTypeInternal _Ok_default_instance_;
|
|
PROTOBUF_CONSTEXPR Error::Error(
|
|
::_pbi::ConstantInitialized): _impl_{
|
|
/*decltype(_impl_._has_bits_)*/{}
|
|
, /*decltype(_impl_._cached_size_)*/{}
|
|
, /*decltype(_impl_.msg_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
|
, /*decltype(_impl_.sql_state_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
|
, /*decltype(_impl_.severity_)*/0
|
|
, /*decltype(_impl_.code_)*/0u} {}
|
|
struct ErrorDefaultTypeInternal {
|
|
PROTOBUF_CONSTEXPR ErrorDefaultTypeInternal()
|
|
: _instance(::_pbi::ConstantInitialized{}) {}
|
|
~ErrorDefaultTypeInternal() {}
|
|
union {
|
|
Error _instance;
|
|
};
|
|
};
|
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ErrorDefaultTypeInternal _Error_default_instance_;
|
|
} // namespace Mysqlx
|
|
static ::_pb::Metadata file_level_metadata_mysqlx_2eproto[4];
|
|
static const ::_pb::EnumDescriptor* file_level_enum_descriptors_mysqlx_2eproto[3];
|
|
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_mysqlx_2eproto = nullptr;
|
|
|
|
const uint32_t TableStruct_mysqlx_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
|
~0u, // no _has_bits_
|
|
PROTOBUF_FIELD_OFFSET(::Mysqlx::ClientMessages, _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::ServerMessages, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
~0u, // no _inlined_string_donated_
|
|
PROTOBUF_FIELD_OFFSET(::Mysqlx::Ok, _impl_._has_bits_),
|
|
PROTOBUF_FIELD_OFFSET(::Mysqlx::Ok, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
~0u, // no _inlined_string_donated_
|
|
PROTOBUF_FIELD_OFFSET(::Mysqlx::Ok, _impl_.msg_),
|
|
0,
|
|
PROTOBUF_FIELD_OFFSET(::Mysqlx::Error, _impl_._has_bits_),
|
|
PROTOBUF_FIELD_OFFSET(::Mysqlx::Error, _internal_metadata_),
|
|
~0u, // no _extensions_
|
|
~0u, // no _oneof_case_
|
|
~0u, // no _weak_field_map_
|
|
~0u, // no _inlined_string_donated_
|
|
PROTOBUF_FIELD_OFFSET(::Mysqlx::Error, _impl_.severity_),
|
|
PROTOBUF_FIELD_OFFSET(::Mysqlx::Error, _impl_.code_),
|
|
PROTOBUF_FIELD_OFFSET(::Mysqlx::Error, _impl_.sql_state_),
|
|
PROTOBUF_FIELD_OFFSET(::Mysqlx::Error, _impl_.msg_),
|
|
2,
|
|
3,
|
|
1,
|
|
0,
|
|
};
|
|
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
|
{ 0, -1, -1, sizeof(::Mysqlx::ClientMessages)},
|
|
{ 6, -1, -1, sizeof(::Mysqlx::ServerMessages)},
|
|
{ 12, 19, -1, sizeof(::Mysqlx::Ok)},
|
|
{ 20, 30, -1, sizeof(::Mysqlx::Error)},
|
|
};
|
|
|
|
static const ::_pb::Message* const file_default_instances[] = {
|
|
&::Mysqlx::_ClientMessages_default_instance_._instance,
|
|
&::Mysqlx::_ServerMessages_default_instance_._instance,
|
|
&::Mysqlx::_Ok_default_instance_._instance,
|
|
&::Mysqlx::_Error_default_instance_._instance,
|
|
};
|
|
|
|
const char descriptor_table_protodef_mysqlx_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
|
|
"\n\014mysqlx.proto\022\006Mysqlx\032 google/protobuf/"
|
|
"descriptor.proto\"\374\003\n\016ClientMessages\"\351\003\n\004"
|
|
"Type\022\030\n\024CON_CAPABILITIES_GET\020\001\022\030\n\024CON_CA"
|
|
"PABILITIES_SET\020\002\022\r\n\tCON_CLOSE\020\003\022\033\n\027SESS_"
|
|
"AUTHENTICATE_START\020\004\022\036\n\032SESS_AUTHENTICAT"
|
|
"E_CONTINUE\020\005\022\016\n\nSESS_RESET\020\006\022\016\n\nSESS_CLO"
|
|
"SE\020\007\022\024\n\020SQL_STMT_EXECUTE\020\014\022\r\n\tCRUD_FIND\020"
|
|
"\021\022\017\n\013CRUD_INSERT\020\022\022\017\n\013CRUD_UPDATE\020\023\022\017\n\013C"
|
|
"RUD_DELETE\020\024\022\017\n\013EXPECT_OPEN\020\030\022\020\n\014EXPECT_"
|
|
"CLOSE\020\031\022\024\n\020CRUD_CREATE_VIEW\020\036\022\024\n\020CRUD_MO"
|
|
"DIFY_VIEW\020\037\022\022\n\016CRUD_DROP_VIEW\020 \022\023\n\017PREPA"
|
|
"RE_PREPARE\020(\022\023\n\017PREPARE_EXECUTE\020)\022\026\n\022PRE"
|
|
"PARE_DEALLOCATE\020*\022\017\n\013CURSOR_OPEN\020+\022\020\n\014CU"
|
|
"RSOR_CLOSE\020,\022\020\n\014CURSOR_FETCH\020-\022\017\n\013COMPRE"
|
|
"SSION\020.\"\363\002\n\016ServerMessages\"\340\002\n\004Type\022\006\n\002O"
|
|
"K\020\000\022\t\n\005ERROR\020\001\022\025\n\021CONN_CAPABILITIES\020\002\022\036\n"
|
|
"\032SESS_AUTHENTICATE_CONTINUE\020\003\022\030\n\024SESS_AU"
|
|
"THENTICATE_OK\020\004\022\n\n\006NOTICE\020\013\022\036\n\032RESULTSET"
|
|
"_COLUMN_META_DATA\020\014\022\021\n\rRESULTSET_ROW\020\r\022\030"
|
|
"\n\024RESULTSET_FETCH_DONE\020\016\022\035\n\031RESULTSET_FE"
|
|
"TCH_SUSPENDED\020\017\022(\n$RESULTSET_FETCH_DONE_"
|
|
"MORE_RESULTSETS\020\020\022\027\n\023SQL_STMT_EXECUTE_OK"
|
|
"\020\021\022(\n$RESULTSET_FETCH_DONE_MORE_OUT_PARA"
|
|
"MS\020\022\022\017\n\013COMPRESSION\020\023\"\027\n\002Ok\022\013\n\003msg\030\001 \001(\t"
|
|
":\004\220\3520\000\"\216\001\n\005Error\022/\n\010severity\030\001 \001(\0162\026.Mys"
|
|
"qlx.Error.Severity:\005ERROR\022\014\n\004code\030\002 \002(\r\022"
|
|
"\021\n\tsql_state\030\004 \002(\t\022\013\n\003msg\030\003 \002(\t\" \n\010Sever"
|
|
"ity\022\t\n\005ERROR\020\000\022\t\n\005FATAL\020\001:\004\220\3520\001:Y\n\021clien"
|
|
"t_message_id\022\037.google.protobuf.MessageOp"
|
|
"tions\030\241\215\006 \001(\0162\033.Mysqlx.ClientMessages.Ty"
|
|
"pe:Y\n\021server_message_id\022\037.google.protobu"
|
|
"f.MessageOptions\030\242\215\006 \001(\0162\033.Mysqlx.Server"
|
|
"Messages.TypeB\031\n\027com.mysql.cj.x.protobuf"
|
|
;
|
|
static const ::_pbi::DescriptorTable* const descriptor_table_mysqlx_2eproto_deps[1] = {
|
|
&::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto,
|
|
};
|
|
static ::_pbi::once_flag descriptor_table_mysqlx_2eproto_once;
|
|
const ::_pbi::DescriptorTable descriptor_table_mysqlx_2eproto = {
|
|
false, false, 1320, descriptor_table_protodef_mysqlx_2eproto,
|
|
"mysqlx.proto",
|
|
&descriptor_table_mysqlx_2eproto_once, descriptor_table_mysqlx_2eproto_deps, 1, 4,
|
|
schemas, file_default_instances, TableStruct_mysqlx_2eproto::offsets,
|
|
file_level_metadata_mysqlx_2eproto, file_level_enum_descriptors_mysqlx_2eproto,
|
|
file_level_service_descriptors_mysqlx_2eproto,
|
|
};
|
|
PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_mysqlx_2eproto_getter() {
|
|
return &descriptor_table_mysqlx_2eproto;
|
|
}
|
|
|
|
// Force running AddDescriptors() at dynamic initialization time.
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_mysqlx_2eproto(&descriptor_table_mysqlx_2eproto);
|
|
namespace Mysqlx {
|
|
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ClientMessages_Type_descriptor() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_mysqlx_2eproto);
|
|
return file_level_enum_descriptors_mysqlx_2eproto[0];
|
|
}
|
|
bool ClientMessages_Type_IsValid(int value) {
|
|
switch (value) {
|
|
case 1:
|
|
case 2:
|
|
case 3:
|
|
case 4:
|
|
case 5:
|
|
case 6:
|
|
case 7:
|
|
case 12:
|
|
case 17:
|
|
case 18:
|
|
case 19:
|
|
case 20:
|
|
case 24:
|
|
case 25:
|
|
case 30:
|
|
case 31:
|
|
case 32:
|
|
case 40:
|
|
case 41:
|
|
case 42:
|
|
case 43:
|
|
case 44:
|
|
case 45:
|
|
case 46:
|
|
return true;
|
|
default:
|
|
return false;
|
|
}
|
|
}
|
|
|
|
#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
|
|
constexpr ClientMessages_Type ClientMessages::CON_CAPABILITIES_GET;
|
|
constexpr ClientMessages_Type ClientMessages::CON_CAPABILITIES_SET;
|
|
constexpr ClientMessages_Type ClientMessages::CON_CLOSE;
|
|
constexpr ClientMessages_Type ClientMessages::SESS_AUTHENTICATE_START;
|
|
constexpr ClientMessages_Type ClientMessages::SESS_AUTHENTICATE_CONTINUE;
|
|
constexpr ClientMessages_Type ClientMessages::SESS_RESET;
|
|
constexpr ClientMessages_Type ClientMessages::SESS_CLOSE;
|
|
constexpr ClientMessages_Type ClientMessages::SQL_STMT_EXECUTE;
|
|
constexpr ClientMessages_Type ClientMessages::CRUD_FIND;
|
|
constexpr ClientMessages_Type ClientMessages::CRUD_INSERT;
|
|
constexpr ClientMessages_Type ClientMessages::CRUD_UPDATE;
|
|
constexpr ClientMessages_Type ClientMessages::CRUD_DELETE;
|
|
constexpr ClientMessages_Type ClientMessages::EXPECT_OPEN;
|
|
constexpr ClientMessages_Type ClientMessages::EXPECT_CLOSE;
|
|
constexpr ClientMessages_Type ClientMessages::CRUD_CREATE_VIEW;
|
|
constexpr ClientMessages_Type ClientMessages::CRUD_MODIFY_VIEW;
|
|
constexpr ClientMessages_Type ClientMessages::CRUD_DROP_VIEW;
|
|
constexpr ClientMessages_Type ClientMessages::PREPARE_PREPARE;
|
|
constexpr ClientMessages_Type ClientMessages::PREPARE_EXECUTE;
|
|
constexpr ClientMessages_Type ClientMessages::PREPARE_DEALLOCATE;
|
|
constexpr ClientMessages_Type ClientMessages::CURSOR_OPEN;
|
|
constexpr ClientMessages_Type ClientMessages::CURSOR_CLOSE;
|
|
constexpr ClientMessages_Type ClientMessages::CURSOR_FETCH;
|
|
constexpr ClientMessages_Type ClientMessages::COMPRESSION;
|
|
constexpr ClientMessages_Type ClientMessages::Type_MIN;
|
|
constexpr ClientMessages_Type ClientMessages::Type_MAX;
|
|
constexpr int ClientMessages::Type_ARRAYSIZE;
|
|
#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
|
|
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ServerMessages_Type_descriptor() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_mysqlx_2eproto);
|
|
return file_level_enum_descriptors_mysqlx_2eproto[1];
|
|
}
|
|
bool ServerMessages_Type_IsValid(int value) {
|
|
switch (value) {
|
|
case 0:
|
|
case 1:
|
|
case 2:
|
|
case 3:
|
|
case 4:
|
|
case 11:
|
|
case 12:
|
|
case 13:
|
|
case 14:
|
|
case 15:
|
|
case 16:
|
|
case 17:
|
|
case 18:
|
|
case 19:
|
|
return true;
|
|
default:
|
|
return false;
|
|
}
|
|
}
|
|
|
|
#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
|
|
constexpr ServerMessages_Type ServerMessages::OK;
|
|
constexpr ServerMessages_Type ServerMessages::ERROR;
|
|
constexpr ServerMessages_Type ServerMessages::CONN_CAPABILITIES;
|
|
constexpr ServerMessages_Type ServerMessages::SESS_AUTHENTICATE_CONTINUE;
|
|
constexpr ServerMessages_Type ServerMessages::SESS_AUTHENTICATE_OK;
|
|
constexpr ServerMessages_Type ServerMessages::NOTICE;
|
|
constexpr ServerMessages_Type ServerMessages::RESULTSET_COLUMN_META_DATA;
|
|
constexpr ServerMessages_Type ServerMessages::RESULTSET_ROW;
|
|
constexpr ServerMessages_Type ServerMessages::RESULTSET_FETCH_DONE;
|
|
constexpr ServerMessages_Type ServerMessages::RESULTSET_FETCH_SUSPENDED;
|
|
constexpr ServerMessages_Type ServerMessages::RESULTSET_FETCH_DONE_MORE_RESULTSETS;
|
|
constexpr ServerMessages_Type ServerMessages::SQL_STMT_EXECUTE_OK;
|
|
constexpr ServerMessages_Type ServerMessages::RESULTSET_FETCH_DONE_MORE_OUT_PARAMS;
|
|
constexpr ServerMessages_Type ServerMessages::COMPRESSION;
|
|
constexpr ServerMessages_Type ServerMessages::Type_MIN;
|
|
constexpr ServerMessages_Type ServerMessages::Type_MAX;
|
|
constexpr int ServerMessages::Type_ARRAYSIZE;
|
|
#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
|
|
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Error_Severity_descriptor() {
|
|
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_mysqlx_2eproto);
|
|
return file_level_enum_descriptors_mysqlx_2eproto[2];
|
|
}
|
|
bool Error_Severity_IsValid(int value) {
|
|
switch (value) {
|
|
case 0:
|
|
case 1:
|
|
return true;
|
|
default:
|
|
return false;
|
|
}
|
|
}
|
|
|
|
#if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
|
|
constexpr Error_Severity Error::ERROR;
|
|
constexpr Error_Severity Error::FATAL;
|
|
constexpr Error_Severity Error::Severity_MIN;
|
|
constexpr Error_Severity Error::Severity_MAX;
|
|
constexpr int Error::Severity_ARRAYSIZE;
|
|
#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
|
|
|
|
// ===================================================================
|
|
|
|
class ClientMessages::_Internal {
|
|
public:
|
|
};
|
|
|
|
ClientMessages::ClientMessages(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
|
bool is_message_owned)
|
|
: ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
|
|
// @@protoc_insertion_point(arena_constructor:Mysqlx.ClientMessages)
|
|
}
|
|
ClientMessages::ClientMessages(const ClientMessages& from)
|
|
: ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
|
|
ClientMessages* const _this = this; (void)_this;
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
// @@protoc_insertion_point(copy_constructor:Mysqlx.ClientMessages)
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ClientMessages::_class_data_ = {
|
|
::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
|
|
::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
|
|
};
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ClientMessages::GetClassData() const { return &_class_data_; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata ClientMessages::GetMetadata() const {
|
|
return ::_pbi::AssignDescriptors(
|
|
&descriptor_table_mysqlx_2eproto_getter, &descriptor_table_mysqlx_2eproto_once,
|
|
file_level_metadata_mysqlx_2eproto[0]);
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
class ServerMessages::_Internal {
|
|
public:
|
|
};
|
|
|
|
ServerMessages::ServerMessages(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
|
bool is_message_owned)
|
|
: ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
|
|
// @@protoc_insertion_point(arena_constructor:Mysqlx.ServerMessages)
|
|
}
|
|
ServerMessages::ServerMessages(const ServerMessages& from)
|
|
: ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
|
|
ServerMessages* const _this = this; (void)_this;
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
// @@protoc_insertion_point(copy_constructor:Mysqlx.ServerMessages)
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ServerMessages::_class_data_ = {
|
|
::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
|
|
::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
|
|
};
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ServerMessages::GetClassData() const { return &_class_data_; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata ServerMessages::GetMetadata() const {
|
|
return ::_pbi::AssignDescriptors(
|
|
&descriptor_table_mysqlx_2eproto_getter, &descriptor_table_mysqlx_2eproto_once,
|
|
file_level_metadata_mysqlx_2eproto[1]);
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
class Ok::_Internal {
|
|
public:
|
|
using HasBits = decltype(std::declval<Ok>()._impl_._has_bits_);
|
|
static void set_has_msg(HasBits* has_bits) {
|
|
(*has_bits)[0] |= 1u;
|
|
}
|
|
};
|
|
|
|
Ok::Ok(::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.Ok)
|
|
}
|
|
Ok::Ok(const Ok& from)
|
|
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
|
Ok* const _this = this; (void)_this;
|
|
new (&_impl_) Impl_{
|
|
decltype(_impl_._has_bits_){from._impl_._has_bits_}
|
|
, /*decltype(_impl_._cached_size_)*/{}
|
|
, decltype(_impl_.msg_){}};
|
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
_impl_.msg_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.msg_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
if (from._internal_has_msg()) {
|
|
_this->_impl_.msg_.Set(from._internal_msg(),
|
|
_this->GetArenaForAllocation());
|
|
}
|
|
// @@protoc_insertion_point(copy_constructor:Mysqlx.Ok)
|
|
}
|
|
|
|
inline void Ok::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_.msg_){}
|
|
};
|
|
_impl_.msg_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.msg_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
}
|
|
|
|
Ok::~Ok() {
|
|
// @@protoc_insertion_point(destructor:Mysqlx.Ok)
|
|
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
|
|
(void)arena;
|
|
return;
|
|
}
|
|
SharedDtor();
|
|
}
|
|
|
|
inline void Ok::SharedDtor() {
|
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
|
_impl_.msg_.Destroy();
|
|
}
|
|
|
|
void Ok::SetCachedSize(int size) const {
|
|
_impl_._cached_size_.Set(size);
|
|
}
|
|
|
|
void Ok::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:Mysqlx.Ok)
|
|
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_.msg_.ClearNonDefaultToEmpty();
|
|
}
|
|
_impl_._has_bits_.Clear();
|
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
|
}
|
|
|
|
const char* Ok::_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 string msg = 1;
|
|
case 1:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
|
|
auto str = _internal_mutable_msg();
|
|
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
|
|
CHK_(ptr);
|
|
#ifndef NDEBUG
|
|
::_pbi::VerifyUTF8(str, "Mysqlx.Ok.msg");
|
|
#endif // !NDEBUG
|
|
} 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* Ok::_InternalSerialize(
|
|
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:Mysqlx.Ok)
|
|
uint32_t cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
cached_has_bits = _impl_._has_bits_[0];
|
|
// optional string msg = 1;
|
|
if (cached_has_bits & 0x00000001u) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->_internal_msg().data(), static_cast<int>(this->_internal_msg().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
|
|
"Mysqlx.Ok.msg");
|
|
target = stream->WriteStringMaybeAliased(
|
|
1, this->_internal_msg(), 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.Ok)
|
|
return target;
|
|
}
|
|
|
|
size_t Ok::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:Mysqlx.Ok)
|
|
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 string msg = 1;
|
|
cached_has_bits = _impl_._has_bits_[0];
|
|
if (cached_has_bits & 0x00000001u) {
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->_internal_msg());
|
|
}
|
|
|
|
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
|
}
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Ok::_class_data_ = {
|
|
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
|
|
Ok::MergeImpl
|
|
};
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Ok::GetClassData() const { return &_class_data_; }
|
|
|
|
|
|
void Ok::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
|
|
auto* const _this = static_cast<Ok*>(&to_msg);
|
|
auto& from = static_cast<const Ok&>(from_msg);
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:Mysqlx.Ok)
|
|
GOOGLE_DCHECK_NE(&from, _this);
|
|
uint32_t cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
if (from._internal_has_msg()) {
|
|
_this->_internal_set_msg(from._internal_msg());
|
|
}
|
|
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
}
|
|
|
|
void Ok::CopyFrom(const Ok& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:Mysqlx.Ok)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool Ok::IsInitialized() const {
|
|
return true;
|
|
}
|
|
|
|
void Ok::InternalSwap(Ok* 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_.msg_, lhs_arena,
|
|
&other->_impl_.msg_, rhs_arena
|
|
);
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata Ok::GetMetadata() const {
|
|
return ::_pbi::AssignDescriptors(
|
|
&descriptor_table_mysqlx_2eproto_getter, &descriptor_table_mysqlx_2eproto_once,
|
|
file_level_metadata_mysqlx_2eproto[2]);
|
|
}
|
|
|
|
// ===================================================================
|
|
|
|
class Error::_Internal {
|
|
public:
|
|
using HasBits = decltype(std::declval<Error>()._impl_._has_bits_);
|
|
static void set_has_severity(HasBits* has_bits) {
|
|
(*has_bits)[0] |= 4u;
|
|
}
|
|
static void set_has_code(HasBits* has_bits) {
|
|
(*has_bits)[0] |= 8u;
|
|
}
|
|
static void set_has_sql_state(HasBits* has_bits) {
|
|
(*has_bits)[0] |= 2u;
|
|
}
|
|
static void set_has_msg(HasBits* has_bits) {
|
|
(*has_bits)[0] |= 1u;
|
|
}
|
|
static bool MissingRequiredFields(const HasBits& has_bits) {
|
|
return ((has_bits[0] & 0x0000000b) ^ 0x0000000b) != 0;
|
|
}
|
|
};
|
|
|
|
Error::Error(::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.Error)
|
|
}
|
|
Error::Error(const Error& from)
|
|
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
|
Error* const _this = this; (void)_this;
|
|
new (&_impl_) Impl_{
|
|
decltype(_impl_._has_bits_){from._impl_._has_bits_}
|
|
, /*decltype(_impl_._cached_size_)*/{}
|
|
, decltype(_impl_.msg_){}
|
|
, decltype(_impl_.sql_state_){}
|
|
, decltype(_impl_.severity_){}
|
|
, decltype(_impl_.code_){}};
|
|
|
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
_impl_.msg_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.msg_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
if (from._internal_has_msg()) {
|
|
_this->_impl_.msg_.Set(from._internal_msg(),
|
|
_this->GetArenaForAllocation());
|
|
}
|
|
_impl_.sql_state_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.sql_state_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
if (from._internal_has_sql_state()) {
|
|
_this->_impl_.sql_state_.Set(from._internal_sql_state(),
|
|
_this->GetArenaForAllocation());
|
|
}
|
|
::memcpy(&_impl_.severity_, &from._impl_.severity_,
|
|
static_cast<size_t>(reinterpret_cast<char*>(&_impl_.code_) -
|
|
reinterpret_cast<char*>(&_impl_.severity_)) + sizeof(_impl_.code_));
|
|
// @@protoc_insertion_point(copy_constructor:Mysqlx.Error)
|
|
}
|
|
|
|
inline void Error::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_.msg_){}
|
|
, decltype(_impl_.sql_state_){}
|
|
, decltype(_impl_.severity_){0}
|
|
, decltype(_impl_.code_){0u}
|
|
};
|
|
_impl_.msg_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.msg_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.sql_state_.InitDefault();
|
|
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
_impl_.sql_state_.Set("", GetArenaForAllocation());
|
|
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
|
}
|
|
|
|
Error::~Error() {
|
|
// @@protoc_insertion_point(destructor:Mysqlx.Error)
|
|
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
|
|
(void)arena;
|
|
return;
|
|
}
|
|
SharedDtor();
|
|
}
|
|
|
|
inline void Error::SharedDtor() {
|
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
|
_impl_.msg_.Destroy();
|
|
_impl_.sql_state_.Destroy();
|
|
}
|
|
|
|
void Error::SetCachedSize(int size) const {
|
|
_impl_._cached_size_.Set(size);
|
|
}
|
|
|
|
void Error::Clear() {
|
|
// @@protoc_insertion_point(message_clear_start:Mysqlx.Error)
|
|
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 & 0x00000003u) {
|
|
if (cached_has_bits & 0x00000001u) {
|
|
_impl_.msg_.ClearNonDefaultToEmpty();
|
|
}
|
|
if (cached_has_bits & 0x00000002u) {
|
|
_impl_.sql_state_.ClearNonDefaultToEmpty();
|
|
}
|
|
}
|
|
if (cached_has_bits & 0x0000000cu) {
|
|
::memset(&_impl_.severity_, 0, static_cast<size_t>(
|
|
reinterpret_cast<char*>(&_impl_.code_) -
|
|
reinterpret_cast<char*>(&_impl_.severity_)) + sizeof(_impl_.code_));
|
|
}
|
|
_impl_._has_bits_.Clear();
|
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
|
}
|
|
|
|
const char* Error::_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 .Mysqlx.Error.Severity severity = 1 [default = ERROR];
|
|
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::Error_Severity_IsValid(val))) {
|
|
_internal_set_severity(static_cast<::Mysqlx::Error_Severity>(val));
|
|
} else {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields());
|
|
}
|
|
} else
|
|
goto handle_unusual;
|
|
continue;
|
|
// required uint32 code = 2;
|
|
case 2:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
|
|
_Internal::set_has_code(&has_bits);
|
|
_impl_.code_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
|
|
CHK_(ptr);
|
|
} else
|
|
goto handle_unusual;
|
|
continue;
|
|
// required string msg = 3;
|
|
case 3:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
|
|
auto str = _internal_mutable_msg();
|
|
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
|
|
CHK_(ptr);
|
|
#ifndef NDEBUG
|
|
::_pbi::VerifyUTF8(str, "Mysqlx.Error.msg");
|
|
#endif // !NDEBUG
|
|
} else
|
|
goto handle_unusual;
|
|
continue;
|
|
// required string sql_state = 4;
|
|
case 4:
|
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
|
|
auto str = _internal_mutable_sql_state();
|
|
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
|
|
CHK_(ptr);
|
|
#ifndef NDEBUG
|
|
::_pbi::VerifyUTF8(str, "Mysqlx.Error.sql_state");
|
|
#endif // !NDEBUG
|
|
} 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* Error::_InternalSerialize(
|
|
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
|
// @@protoc_insertion_point(serialize_to_array_start:Mysqlx.Error)
|
|
uint32_t cached_has_bits = 0;
|
|
(void) cached_has_bits;
|
|
|
|
cached_has_bits = _impl_._has_bits_[0];
|
|
// optional .Mysqlx.Error.Severity severity = 1 [default = ERROR];
|
|
if (cached_has_bits & 0x00000004u) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
|
1, this->_internal_severity(), target);
|
|
}
|
|
|
|
// required uint32 code = 2;
|
|
if (cached_has_bits & 0x00000008u) {
|
|
target = stream->EnsureSpace(target);
|
|
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_code(), target);
|
|
}
|
|
|
|
// required string msg = 3;
|
|
if (cached_has_bits & 0x00000001u) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->_internal_msg().data(), static_cast<int>(this->_internal_msg().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
|
|
"Mysqlx.Error.msg");
|
|
target = stream->WriteStringMaybeAliased(
|
|
3, this->_internal_msg(), target);
|
|
}
|
|
|
|
// required string sql_state = 4;
|
|
if (cached_has_bits & 0x00000002u) {
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
|
|
this->_internal_sql_state().data(), static_cast<int>(this->_internal_sql_state().length()),
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
|
|
"Mysqlx.Error.sql_state");
|
|
target = stream->WriteStringMaybeAliased(
|
|
4, this->_internal_sql_state(), 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.Error)
|
|
return target;
|
|
}
|
|
|
|
size_t Error::RequiredFieldsByteSizeFallback() const {
|
|
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:Mysqlx.Error)
|
|
size_t total_size = 0;
|
|
|
|
if (_internal_has_msg()) {
|
|
// required string msg = 3;
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->_internal_msg());
|
|
}
|
|
|
|
if (_internal_has_sql_state()) {
|
|
// required string sql_state = 4;
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->_internal_sql_state());
|
|
}
|
|
|
|
if (_internal_has_code()) {
|
|
// required uint32 code = 2;
|
|
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_code());
|
|
}
|
|
|
|
return total_size;
|
|
}
|
|
size_t Error::ByteSizeLong() const {
|
|
// @@protoc_insertion_point(message_byte_size_start:Mysqlx.Error)
|
|
size_t total_size = 0;
|
|
|
|
if (((_impl_._has_bits_[0] & 0x0000000b) ^ 0x0000000b) == 0) { // All required fields are present.
|
|
// required string msg = 3;
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->_internal_msg());
|
|
|
|
// required string sql_state = 4;
|
|
total_size += 1 +
|
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
|
this->_internal_sql_state());
|
|
|
|
// required uint32 code = 2;
|
|
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_code());
|
|
|
|
} else {
|
|
total_size += RequiredFieldsByteSizeFallback();
|
|
}
|
|
uint32_t cached_has_bits = 0;
|
|
// Prevent compiler warnings about cached_has_bits being unused
|
|
(void) cached_has_bits;
|
|
|
|
// optional .Mysqlx.Error.Severity severity = 1 [default = ERROR];
|
|
cached_has_bits = _impl_._has_bits_[0];
|
|
if (cached_has_bits & 0x00000004u) {
|
|
total_size += 1 +
|
|
::_pbi::WireFormatLite::EnumSize(this->_internal_severity());
|
|
}
|
|
|
|
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
|
}
|
|
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Error::_class_data_ = {
|
|
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
|
|
Error::MergeImpl
|
|
};
|
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Error::GetClassData() const { return &_class_data_; }
|
|
|
|
|
|
void Error::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
|
|
auto* const _this = static_cast<Error*>(&to_msg);
|
|
auto& from = static_cast<const Error&>(from_msg);
|
|
// @@protoc_insertion_point(class_specific_merge_from_start:Mysqlx.Error)
|
|
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 & 0x0000000fu) {
|
|
if (cached_has_bits & 0x00000001u) {
|
|
_this->_internal_set_msg(from._internal_msg());
|
|
}
|
|
if (cached_has_bits & 0x00000002u) {
|
|
_this->_internal_set_sql_state(from._internal_sql_state());
|
|
}
|
|
if (cached_has_bits & 0x00000004u) {
|
|
_this->_impl_.severity_ = from._impl_.severity_;
|
|
}
|
|
if (cached_has_bits & 0x00000008u) {
|
|
_this->_impl_.code_ = from._impl_.code_;
|
|
}
|
|
_this->_impl_._has_bits_[0] |= cached_has_bits;
|
|
}
|
|
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
|
}
|
|
|
|
void Error::CopyFrom(const Error& from) {
|
|
// @@protoc_insertion_point(class_specific_copy_from_start:Mysqlx.Error)
|
|
if (&from == this) return;
|
|
Clear();
|
|
MergeFrom(from);
|
|
}
|
|
|
|
bool Error::IsInitialized() const {
|
|
if (_Internal::MissingRequiredFields(_impl_._has_bits_)) return false;
|
|
return true;
|
|
}
|
|
|
|
void Error::InternalSwap(Error* 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_.msg_, lhs_arena,
|
|
&other->_impl_.msg_, rhs_arena
|
|
);
|
|
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
|
&_impl_.sql_state_, lhs_arena,
|
|
&other->_impl_.sql_state_, rhs_arena
|
|
);
|
|
::PROTOBUF_NAMESPACE_ID::internal::memswap<
|
|
PROTOBUF_FIELD_OFFSET(Error, _impl_.code_)
|
|
+ sizeof(Error::_impl_.code_)
|
|
- PROTOBUF_FIELD_OFFSET(Error, _impl_.severity_)>(
|
|
reinterpret_cast<char*>(&_impl_.severity_),
|
|
reinterpret_cast<char*>(&other->_impl_.severity_));
|
|
}
|
|
|
|
::PROTOBUF_NAMESPACE_ID::Metadata Error::GetMetadata() const {
|
|
return ::_pbi::AssignDescriptors(
|
|
&descriptor_table_mysqlx_2eproto_getter, &descriptor_table_mysqlx_2eproto_once,
|
|
file_level_metadata_mysqlx_2eproto[3]);
|
|
}
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::MessageOptions,
|
|
::PROTOBUF_NAMESPACE_ID::internal::EnumTypeTraits< ::Mysqlx::ClientMessages_Type, ::Mysqlx::ClientMessages_Type_IsValid>, 14, false>
|
|
client_message_id(kClientMessageIdFieldNumber, static_cast< ::Mysqlx::ClientMessages_Type >(1), nullptr);
|
|
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::PROTOBUF_NAMESPACE_ID::MessageOptions,
|
|
::PROTOBUF_NAMESPACE_ID::internal::EnumTypeTraits< ::Mysqlx::ServerMessages_Type, ::Mysqlx::ServerMessages_Type_IsValid>, 14, false>
|
|
server_message_id(kServerMessageIdFieldNumber, static_cast< ::Mysqlx::ServerMessages_Type >(0), nullptr);
|
|
|
|
// @@protoc_insertion_point(namespace_scope)
|
|
} // namespace Mysqlx
|
|
PROTOBUF_NAMESPACE_OPEN
|
|
template<> PROTOBUF_NOINLINE ::Mysqlx::ClientMessages*
|
|
Arena::CreateMaybeMessage< ::Mysqlx::ClientMessages >(Arena* arena) {
|
|
return Arena::CreateMessageInternal< ::Mysqlx::ClientMessages >(arena);
|
|
}
|
|
template<> PROTOBUF_NOINLINE ::Mysqlx::ServerMessages*
|
|
Arena::CreateMaybeMessage< ::Mysqlx::ServerMessages >(Arena* arena) {
|
|
return Arena::CreateMessageInternal< ::Mysqlx::ServerMessages >(arena);
|
|
}
|
|
template<> PROTOBUF_NOINLINE ::Mysqlx::Ok*
|
|
Arena::CreateMaybeMessage< ::Mysqlx::Ok >(Arena* arena) {
|
|
return Arena::CreateMessageInternal< ::Mysqlx::Ok >(arena);
|
|
}
|
|
template<> PROTOBUF_NOINLINE ::Mysqlx::Error*
|
|
Arena::CreateMaybeMessage< ::Mysqlx::Error >(Arena* arena) {
|
|
return Arena::CreateMessageInternal< ::Mysqlx::Error >(arena);
|
|
}
|
|
PROTOBUF_NAMESPACE_CLOSE
|
|
|
|
// @@protoc_insertion_point(global_scope)
|
|
#include <google/protobuf/port_undef.inc>
|